3
9.06 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
805921
813425
732909
744484
765837
772965
724342
738932
765636
788843
814225
825275
619368
780876
800599
751801
753787
783405
799859
726069
764025
767646
748403
763810
773496
793940
794038
797296
545833
548086
824532
541995
794030
778172
807043
783343
787675
806305
738919
728088
768281
793078
819731
542600
800311
805171
811797
809084
812533
736353
763046
726151
760681
765739
806077
548098
542622
718384
777688
806068
812876
769882
758026
587459
785319
730599
544012
571029
545801
542875
529823
532531
554163
461876
532604
]
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 (805921 , 813425 , 732909 , 744484 , 765837 , 772965 , 724342 , 738932 , 765636 , 788843 , 814225 , 825275 , 619368 , 780876 , 800599 , 751801 , 753787 , 783405 , 799859 , 726069 , 764025 , 767646 , 748403 , 763810 , 773496 , 793940 , 794038 , 797296 , 545833 , 548086 , 824532 , 541995 , 794030 , 778172 , 807043 , 783343 , 787675 , 806305 , 738919 , 728088 , 768281 , 793078 , 819731 , 542600 , 800311 , 805171 , 811797 , 809084 , 812533 , 736353 , 763046 , 726151 , 760681 , 765739 , 806077 , 548098 , 542622 , 718384 , 777688 , 806068 , 812876 , 769882 , 758026 , 587459 , 785319 , 730599 , 544012 , 571029 , 545801 , 542875 , 529823 , 532531 , 554163 , 461876 , 532604 );
Copy
4
2.08 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
461876
529823
532531
532604
541995
542600
542622
542875
544012
545801
545833
548086
548098
554163
571029
587459
619368
718384
724342
726069
726151
728088
730599
732909
736353
738919
738932
744484
748403
751801
753787
758026
760681
763046
763810
764025
765636
765739
765837
767646
768281
769882
772965
773496
777688
778172
780876
783343
783405
785319
787675
788843
793078
793940
794030
794038
797296
799859
800311
800599
805171
805921
806068
806077
806305
807043
809084
811797
812533
812876
813425
814225
819731
824532
825275
]
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 (461876 , 529823 , 532531 , 532604 , 541995 , 542600 , 542622 , 542875 , 544012 , 545801 , 545833 , 548086 , 548098 , 554163 , 571029 , 587459 , 619368 , 718384 , 724342 , 726069 , 726151 , 728088 , 730599 , 732909 , 736353 , 738919 , 738932 , 744484 , 748403 , 751801 , 753787 , 758026 , 760681 , 763046 , 763810 , 764025 , 765636 , 765739 , 765837 , 767646 , 768281 , 769882 , 772965 , 773496 , 777688 , 778172 , 780876 , 783343 , 783405 , 785319 , 787675 , 788843 , 793078 , 793940 , 794030 , 794038 , 797296 , 799859 , 800311 , 800599 , 805171 , 805921 , 806068 , 806077 , 806305 , 807043 , 809084 , 811797 , 812533 , 812876 , 813425 , 814225 , 819731 , 824532 , 825275 );
Copy
5
107.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
461876
529823
532531
532604
541995
542600
542622
542875
544012
545801
545833
548086
548098
554163
571029
587459
619368
718384
724342
726069
726151
728088
730599
732909
736353
738919
738932
744484
748403
751801
753787
758026
760681
763046
763810
764025
765636
765739
765837
767646
768281
769882
772965
773496
777688
778172
780876
783343
783405
785319
787675
788843
793078
793940
794030
794038
797296
799859
800311
800599
805171
805921
806068
806077
806305
807043
809084
811797
812533
812876
813425
814225
819731
824532
825275
]
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 (461876 , 529823 , 532531 , 532604 , 541995 , 542600 , 542622 , 542875 , 544012 , 545801 , 545833 , 548086 , 548098 , 554163 , 571029 , 587459 , 619368 , 718384 , 724342 , 726069 , 726151 , 728088 , 730599 , 732909 , 736353 , 738919 , 738932 , 744484 , 748403 , 751801 , 753787 , 758026 , 760681 , 763046 , 763810 , 764025 , 765636 , 765739 , 765837 , 767646 , 768281 , 769882 , 772965 , 773496 , 777688 , 778172 , 780876 , 783343 , 783405 , 785319 , 787675 , 788843 , 793078 , 793940 , 794030 , 794038 , 797296 , 799859 , 800311 , 800599 , 805171 , 805921 , 806068 , 806077 , 806305 , 807043 , 809084 , 811797 , 812533 , 812876 , 813425 , 814225 , 819731 , 824532 , 825275 );
Copy