75.96 ms (43.76%)
1
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
4306
387758
426296
426374
426536
427290
429444
429523
432552
432696
441566
443091
452228
460396
464878
465293
472972
475462
480714
482769
485234
492009
505846
506407
507685
519436
529082
544945
547556
581064
583151
603824
604178
624158
632114
663738
695892
715700
717666
720828
721936
726932
726986
728410
729696
731100
731243
731311
734928
740287
740288
740678
742320
742749
742861
743068
748979
768346
775377
777742
779730
788784
794936
795461
801737
816607
]
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 (4306 , 387758 , 426296 , 426374 , 426536 , 427290 , 429444 , 429523 , 432552 , 432696 , 441566 , 443091 , 452228 , 460396 , 464878 , 465293 , 472972 , 475462 , 480714 , 482769 , 485234 , 492009 , 505846 , 506407 , 507685 , 519436 , 529082 , 544945 , 547556 , 581064 , 583151 , 603824 , 604178 , 624158 , 632114 , 663738 , 695892 , 715700 , 717666 , 720828 , 721936 , 726932 , 726986 , 728410 , 729696 , 731100 , 731243 , 731311 , 734928 , 740287 , 740288 , 740678 , 742320 , 742749 , 742861 , 743068 , 748979 , 768346 , 775377 , 777742 , 779730 , 788784 , 794936 , 795461 , 801737 , 816607 );
Copy
10.52 ms (6.06%)
1
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
740678
775377
717666
779730
715700
726932
731100
734928
742749
728410
663738
740288
731311
604178
721936
731243
492009
816607
795461
695892
426374
801737
740287
788784
768346
581064
777742
742861
748979
472972
794936
729696
544945
603824
387758
583151
4306
464878
529082
743068
720828
441566
726986
460396
482769
742320
624158
505846
432696
443091
465293
480714
475462
507685
432552
632114
427290
519436
547556
429444
506407
429523
426536
452228
485234
426296
]
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 (740678 , 775377 , 717666 , 779730 , 715700 , 726932 , 731100 , 734928 , 742749 , 728410 , 663738 , 740288 , 731311 , 604178 , 721936 , 731243 , 492009 , 816607 , 795461 , 695892 , 426374 , 801737 , 740287 , 788784 , 768346 , 581064 , 777742 , 742861 , 748979 , 472972 , 794936 , 729696 , 544945 , 603824 , 387758 , 583151 , 4306 , 464878 , 529082 , 743068 , 720828 , 441566 , 726986 , 460396 , 482769 , 742320 , 624158 , 505846 , 432696 , 443091 , 465293 , 480714 , 475462 , 507685 , 432552 , 632114 , 427290 , 519436 , 547556 , 429444 , 506407 , 429523 , 426536 , 452228 , 485234 , 426296 );
Copy
2.53 ms (1.46%)
1
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
4306
387758
426296
426374
426536
427290
429444
429523
432552
432696
441566
443091
452228
460396
464878
465293
472972
475462
480714
482769
485234
492009
505846
506407
507685
519436
529082
544945
547556
581064
583151
603824
604178
624158
632114
663738
695892
715700
717666
720828
721936
726932
726986
728410
729696
731100
731243
731311
734928
740287
740288
740678
742320
742749
742861
743068
748979
768346
775377
777742
779730
788784
794936
795461
801737
816607
]
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 (4306 , 387758 , 426296 , 426374 , 426536 , 427290 , 429444 , 429523 , 432552 , 432696 , 441566 , 443091 , 452228 , 460396 , 464878 , 465293 , 472972 , 475462 , 480714 , 482769 , 485234 , 492009 , 505846 , 506407 , 507685 , 519436 , 529082 , 544945 , 547556 , 581064 , 583151 , 603824 , 604178 , 624158 , 632114 , 663738 , 695892 , 715700 , 717666 , 720828 , 721936 , 726932 , 726986 , 728410 , 729696 , 731100 , 731243 , 731311 , 734928 , 740287 , 740288 , 740678 , 742320 , 742749 , 742861 , 743068 , 748979 , 768346 , 775377 , 777742 , 779730 , 788784 , 794936 , 795461 , 801737 , 816607 );
Copy