3
13.04 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
478463
513882
548455
637442
636033
550949
388091
784254
784308
796239
389171
130429
462788
634169
633776
130289
785421
421107
530018
628379
628388
400662
461609
530019
530380
542965
421058
775889
633749
775752
436358
431105
522858
534987
606578
496900
597965
421352
529849
666901
588301
624175
493128
491342
760002
628389
545363
540334
472125
545427
545444
651647
680190
635215
639334
630552
775960
810694
775967
805143
451565
463107
524551
712880
565248
617423
501474
642662
627807
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (478463 , 513882 , 548455 , 637442 , 636033 , 550949 , 388091 , 784254 , 784308 , 796239 , 389171 , 130429 , 462788 , 634169 , 633776 , 130289 , 785421 , 421107 , 530018 , 628379 , 628388 , 400662 , 461609 , 530019 , 530380 , 542965 , 421058 , 775889 , 633749 , 775752 , 436358 , 431105 , 522858 , 534987 , 606578 , 496900 , 597965 , 421352 , 529849 , 666901 , 588301 , 624175 , 493128 , 491342 , 760002 , 628389 , 545363 , 540334 , 472125 , 545427 , 545444 , 651647 , 680190 , 635215 , 639334 , 630552 , 775960 , 810694 , 775967 , 805143 , 451565 , 463107 , 524551 , 712880 , 565248 , 617423 , 501474 , 642662 , 627807 );
Copy
4
2.43 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
130289
130429
388091
389171
400662
421058
421107
421352
431105
436358
451565
461609
462788
463107
472125
478463
491342
493128
496900
501474
513882
522858
524551
529849
530018
530019
530380
534987
540334
542965
545363
545427
545444
548455
550949
565248
588301
597965
606578
617423
624175
627807
628379
628388
628389
630552
633749
633776
634169
635215
636033
637442
639334
642662
651647
666901
680190
712880
760002
775752
775889
775960
775967
784254
784308
785421
796239
805143
810694
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (130289 , 130429 , 388091 , 389171 , 400662 , 421058 , 421107 , 421352 , 431105 , 436358 , 451565 , 461609 , 462788 , 463107 , 472125 , 478463 , 491342 , 493128 , 496900 , 501474 , 513882 , 522858 , 524551 , 529849 , 530018 , 530019 , 530380 , 534987 , 540334 , 542965 , 545363 , 545427 , 545444 , 548455 , 550949 , 565248 , 588301 , 597965 , 606578 , 617423 , 624175 , 627807 , 628379 , 628388 , 628389 , 630552 , 633749 , 633776 , 634169 , 635215 , 636033 , 637442 , 639334 , 642662 , 651647 , 666901 , 680190 , 712880 , 760002 , 775752 , 775889 , 775960 , 775967 , 784254 , 784308 , 785421 , 796239 , 805143 , 810694 );
Copy
5
100.71 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
130289
130429
388091
389171
400662
421058
421107
421352
431105
436358
451565
461609
462788
463107
472125
478463
491342
493128
496900
501474
513882
522858
524551
529849
530018
530019
530380
534987
540334
542965
545363
545427
545444
548455
550949
565248
588301
597965
606578
617423
624175
627807
628379
628388
628389
630552
633749
633776
634169
635215
636033
637442
639334
642662
651647
666901
680190
712880
760002
775752
775889
775960
775967
784254
784308
785421
796239
805143
810694
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (130289 , 130429 , 388091 , 389171 , 400662 , 421058 , 421107 , 421352 , 431105 , 436358 , 451565 , 461609 , 462788 , 463107 , 472125 , 478463 , 491342 , 493128 , 496900 , 501474 , 513882 , 522858 , 524551 , 529849 , 530018 , 530019 , 530380 , 534987 , 540334 , 542965 , 545363 , 545427 , 545444 , 548455 , 550949 , 565248 , 588301 , 597965 , 606578 , 617423 , 624175 , 627807 , 628379 , 628388 , 628389 , 630552 , 633749 , 633776 , 634169 , 635215 , 636033 , 637442 , 639334 , 642662 , 651647 , 666901 , 680190 , 712880 , 760002 , 775752 , 775889 , 775960 , 775967 , 784254 , 784308 , 785421 , 796239 , 805143 , 810694 );
Copy