3
11.14 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
753576
389933
823380
389838
812907
589766
560269
542055
523022
384393
401936
448724
748719
604016
797627
429471
792420
695725
784670
670965
605344
478499
653870
734161
163761
758924
589525
634454
759817
464095
758930
749284
445036
620322
802634
538696
723123
590474
593087
598302
737136
386761
626435
385476
405553
471121
551088
545821
579213
716112
720441
556809
634873
765403
391355
529359
589568
603555
763072
453844
524474
387251
424330
461747
567820
720047
527689
466376
427950
]
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 (753576 , 389933 , 823380 , 389838 , 812907 , 589766 , 560269 , 542055 , 523022 , 384393 , 401936 , 448724 , 748719 , 604016 , 797627 , 429471 , 792420 , 695725 , 784670 , 670965 , 605344 , 478499 , 653870 , 734161 , 163761 , 758924 , 589525 , 634454 , 759817 , 464095 , 758930 , 749284 , 445036 , 620322 , 802634 , 538696 , 723123 , 590474 , 593087 , 598302 , 737136 , 386761 , 626435 , 385476 , 405553 , 471121 , 551088 , 545821 , 579213 , 716112 , 720441 , 556809 , 634873 , 765403 , 391355 , 529359 , 589568 , 603555 , 763072 , 453844 , 524474 , 387251 , 424330 , 461747 , 567820 , 720047 , 527689 , 466376 , 427950 );
Copy
4
2.35 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
163761
384393
385476
386761
387251
389838
389933
391355
401936
405553
424330
427950
429471
445036
448724
453844
461747
464095
466376
471121
478499
523022
524474
527689
529359
538696
542055
545821
551088
556809
560269
567820
579213
589525
589568
589766
590474
593087
598302
603555
604016
605344
620322
626435
634454
634873
653870
670965
695725
716112
720047
720441
723123
734161
737136
748719
749284
753576
758924
758930
759817
763072
765403
784670
792420
797627
802634
812907
823380
]
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 (163761 , 384393 , 385476 , 386761 , 387251 , 389838 , 389933 , 391355 , 401936 , 405553 , 424330 , 427950 , 429471 , 445036 , 448724 , 453844 , 461747 , 464095 , 466376 , 471121 , 478499 , 523022 , 524474 , 527689 , 529359 , 538696 , 542055 , 545821 , 551088 , 556809 , 560269 , 567820 , 579213 , 589525 , 589568 , 589766 , 590474 , 593087 , 598302 , 603555 , 604016 , 605344 , 620322 , 626435 , 634454 , 634873 , 653870 , 670965 , 695725 , 716112 , 720047 , 720441 , 723123 , 734161 , 737136 , 748719 , 749284 , 753576 , 758924 , 758930 , 759817 , 763072 , 765403 , 784670 , 792420 , 797627 , 802634 , 812907 , 823380 );
Copy
5
95.73 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
163761
384393
385476
386761
387251
389838
389933
391355
401936
405553
424330
427950
429471
445036
448724
453844
461747
464095
466376
471121
478499
523022
524474
527689
529359
538696
542055
545821
551088
556809
560269
567820
579213
589525
589568
589766
590474
593087
598302
603555
604016
605344
620322
626435
634454
634873
653870
670965
695725
716112
720047
720441
723123
734161
737136
748719
749284
753576
758924
758930
759817
763072
765403
784670
792420
797627
802634
812907
823380
]
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 (163761 , 384393 , 385476 , 386761 , 387251 , 389838 , 389933 , 391355 , 401936 , 405553 , 424330 , 427950 , 429471 , 445036 , 448724 , 453844 , 461747 , 464095 , 466376 , 471121 , 478499 , 523022 , 524474 , 527689 , 529359 , 538696 , 542055 , 545821 , 551088 , 556809 , 560269 , 567820 , 579213 , 589525 , 589568 , 589766 , 590474 , 593087 , 598302 , 603555 , 604016 , 605344 , 620322 , 626435 , 634454 , 634873 , 653870 , 670965 , 695725 , 716112 , 720047 , 720441 , 723123 , 734161 , 737136 , 748719 , 749284 , 753576 , 758924 , 758930 , 759817 , 763072 , 765403 , 784670 , 792420 , 797627 , 802634 , 812907 , 823380 );
Copy