3
10.24 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
472647
788784
740287
768346
729696
717666
544945
731100
726986
448650
775377
740678
731243
506303
748979
740288
778427
766610
624158
447086
735591
770435
779730
755850
604178
715700
726932
734928
728410
429444
731311
675638
663738
766883
794936
722627
721936
770295
795461
583151
695892
602580
801737
581064
777742
742861
810186
720828
603824
485234
529082
736470
743068
416138
725119
482769
742320
632114
432777
480714
541629
814944
519436
547556
452228
]
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 (472647 , 788784 , 740287 , 768346 , 729696 , 717666 , 544945 , 731100 , 726986 , 448650 , 775377 , 740678 , 731243 , 506303 , 748979 , 740288 , 778427 , 766610 , 624158 , 447086 , 735591 , 770435 , 779730 , 755850 , 604178 , 715700 , 726932 , 734928 , 728410 , 429444 , 731311 , 675638 , 663738 , 766883 , 794936 , 722627 , 721936 , 770295 , 795461 , 583151 , 695892 , 602580 , 801737 , 581064 , 777742 , 742861 , 810186 , 720828 , 603824 , 485234 , 529082 , 736470 , 743068 , 416138 , 725119 , 482769 , 742320 , 632114 , 432777 , 480714 , 541629 , 814944 , 519436 , 547556 , 452228 );
Copy
4
2.84 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
416138
429444
432777
447086
448650
452228
472647
480714
482769
485234
506303
519436
529082
541629
544945
547556
581064
583151
602580
603824
604178
624158
632114
663738
675638
695892
715700
717666
720828
721936
722627
725119
726932
726986
728410
729696
731100
731243
731311
734928
735591
736470
740287
740288
740678
742320
742861
743068
748979
755850
766610
766883
768346
770295
770435
775377
777742
778427
779730
788784
794936
795461
801737
810186
814944
]
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 (416138 , 429444 , 432777 , 447086 , 448650 , 452228 , 472647 , 480714 , 482769 , 485234 , 506303 , 519436 , 529082 , 541629 , 544945 , 547556 , 581064 , 583151 , 602580 , 603824 , 604178 , 624158 , 632114 , 663738 , 675638 , 695892 , 715700 , 717666 , 720828 , 721936 , 722627 , 725119 , 726932 , 726986 , 728410 , 729696 , 731100 , 731243 , 731311 , 734928 , 735591 , 736470 , 740287 , 740288 , 740678 , 742320 , 742861 , 743068 , 748979 , 755850 , 766610 , 766883 , 768346 , 770295 , 770435 , 775377 , 777742 , 778427 , 779730 , 788784 , 794936 , 795461 , 801737 , 810186 , 814944 );
Copy
5
71.76 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
416138
429444
432777
447086
448650
452228
472647
480714
482769
485234
506303
519436
529082
541629
544945
547556
581064
583151
602580
603824
604178
624158
632114
663738
675638
695892
715700
717666
720828
721936
722627
725119
726932
726986
728410
729696
731100
731243
731311
734928
735591
736470
740287
740288
740678
742320
742861
743068
748979
755850
766610
766883
768346
770295
770435
775377
777742
778427
779730
788784
794936
795461
801737
810186
814944
]
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 (416138 , 429444 , 432777 , 447086 , 448650 , 452228 , 472647 , 480714 , 482769 , 485234 , 506303 , 519436 , 529082 , 541629 , 544945 , 547556 , 581064 , 583151 , 602580 , 603824 , 604178 , 624158 , 632114 , 663738 , 675638 , 695892 , 715700 , 717666 , 720828 , 721936 , 722627 , 725119 , 726932 , 726986 , 728410 , 729696 , 731100 , 731243 , 731311 , 734928 , 735591 , 736470 , 740287 , 740288 , 740678 , 742320 , 742861 , 743068 , 748979 , 755850 , 766610 , 766883 , 768346 , 770295 , 770435 , 775377 , 777742 , 778427 , 779730 , 788784 , 794936 , 795461 , 801737 , 810186 , 814944 );
Copy