3
8.33 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
545281
816675
660750
588620
816656
701913
736205
737770
803164
826063
797327
740679
587591
824948
816666
825342
796242
734186
740674
737995
826062
813691
818927
784290
748047
731324
740717
782310
816652
813677
782314
736695
745205
716968
795881
743005
796787
724583
734800
715136
797018
736224
734797
750494
748378
736741
640477
788650
570146
596870
810521
794818
750296
629831
803154
578285
716974
551933
543929
667253
596925
614376
801234
716965
716980
575710
]
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 (545281 , 816675 , 660750 , 588620 , 816656 , 701913 , 736205 , 737770 , 803164 , 826063 , 797327 , 740679 , 587591 , 824948 , 816666 , 825342 , 796242 , 734186 , 740674 , 737995 , 826062 , 813691 , 818927 , 784290 , 748047 , 731324 , 740717 , 782310 , 816652 , 813677 , 782314 , 736695 , 745205 , 716968 , 795881 , 743005 , 796787 , 724583 , 734800 , 715136 , 797018 , 736224 , 734797 , 750494 , 748378 , 736741 , 640477 , 788650 , 570146 , 596870 , 810521 , 794818 , 750296 , 629831 , 803154 , 578285 , 716974 , 551933 , 543929 , 667253 , 596925 , 614376 , 801234 , 716965 , 716980 , 575710 );
Copy
4
2.93 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
543929
545281
551933
570146
575710
578285
587591
588620
596870
596925
614376
629831
640477
660750
667253
701913
715136
716965
716968
716974
716980
724583
731324
734186
734797
734800
736205
736224
736695
736741
737770
737995
740674
740679
740717
743005
745205
748047
748378
750296
750494
782310
782314
784290
788650
794818
795881
796242
796787
797018
797327
801234
803154
803164
810521
813677
813691
816652
816656
816666
816675
818927
824948
825342
826062
826063
]
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 (543929 , 545281 , 551933 , 570146 , 575710 , 578285 , 587591 , 588620 , 596870 , 596925 , 614376 , 629831 , 640477 , 660750 , 667253 , 701913 , 715136 , 716965 , 716968 , 716974 , 716980 , 724583 , 731324 , 734186 , 734797 , 734800 , 736205 , 736224 , 736695 , 736741 , 737770 , 737995 , 740674 , 740679 , 740717 , 743005 , 745205 , 748047 , 748378 , 750296 , 750494 , 782310 , 782314 , 784290 , 788650 , 794818 , 795881 , 796242 , 796787 , 797018 , 797327 , 801234 , 803154 , 803164 , 810521 , 813677 , 813691 , 816652 , 816656 , 816666 , 816675 , 818927 , 824948 , 825342 , 826062 , 826063 );
Copy
5
76.23 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
543929
545281
551933
570146
575710
578285
587591
588620
596870
596925
614376
629831
640477
660750
667253
701913
715136
716965
716968
716974
716980
724583
731324
734186
734797
734800
736205
736224
736695
736741
737770
737995
740674
740679
740717
743005
745205
748047
748378
750296
750494
782310
782314
784290
788650
794818
795881
796242
796787
797018
797327
801234
803154
803164
810521
813677
813691
816652
816656
816666
816675
818927
824948
825342
826062
826063
]
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 (543929 , 545281 , 551933 , 570146 , 575710 , 578285 , 587591 , 588620 , 596870 , 596925 , 614376 , 629831 , 640477 , 660750 , 667253 , 701913 , 715136 , 716965 , 716968 , 716974 , 716980 , 724583 , 731324 , 734186 , 734797 , 734800 , 736205 , 736224 , 736695 , 736741 , 737770 , 737995 , 740674 , 740679 , 740717 , 743005 , 745205 , 748047 , 748378 , 750296 , 750494 , 782310 , 782314 , 784290 , 788650 , 794818 , 795881 , 796242 , 796787 , 797018 , 797327 , 801234 , 803154 , 803164 , 810521 , 813677 , 813691 , 816652 , 816656 , 816666 , 816675 , 818927 , 824948 , 825342 , 826062 , 826063 );
Copy