3
7.87 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
522190
511256
473539
417658
576858
384460
762136
575344
785005
805671
790217
648061
658163
638148
778354
817300
741935
786461
567833
614597
712265
470392
523560
643028
789831
403635
643181
735086
467744
443602
429375
562872
622235
597864
651588
736707
590280
793934
476154
622197
750940
315072
546805
799394
821418
627818
776532
772075
623598
801273
511254
552198
823174
583996
620743
458243
516826
646025
651209
546786
491195
]
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 (522190 , 511256 , 473539 , 417658 , 576858 , 384460 , 762136 , 575344 , 785005 , 805671 , 790217 , 648061 , 658163 , 638148 , 778354 , 817300 , 741935 , 786461 , 567833 , 614597 , 712265 , 470392 , 523560 , 643028 , 789831 , 403635 , 643181 , 735086 , 467744 , 443602 , 429375 , 562872 , 622235 , 597864 , 651588 , 736707 , 590280 , 793934 , 476154 , 622197 , 750940 , 315072 , 546805 , 799394 , 821418 , 627818 , 776532 , 772075 , 623598 , 801273 , 511254 , 552198 , 823174 , 583996 , 620743 , 458243 , 516826 , 646025 , 651209 , 546786 , 491195 );
Copy
4
2.11 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
315072
384460
403635
417658
429375
443602
458243
467744
470392
473539
476154
491195
511254
511256
516826
522190
523560
546786
546805
552198
562872
567833
575344
576858
583996
590280
597864
614597
620743
622197
622235
623598
627818
638148
643028
643181
646025
648061
651209
651588
658163
712265
735086
736707
741935
750940
762136
772075
776532
778354
785005
786461
789831
790217
793934
799394
801273
805671
817300
821418
823174
]
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 (315072 , 384460 , 403635 , 417658 , 429375 , 443602 , 458243 , 467744 , 470392 , 473539 , 476154 , 491195 , 511254 , 511256 , 516826 , 522190 , 523560 , 546786 , 546805 , 552198 , 562872 , 567833 , 575344 , 576858 , 583996 , 590280 , 597864 , 614597 , 620743 , 622197 , 622235 , 623598 , 627818 , 638148 , 643028 , 643181 , 646025 , 648061 , 651209 , 651588 , 658163 , 712265 , 735086 , 736707 , 741935 , 750940 , 762136 , 772075 , 776532 , 778354 , 785005 , 786461 , 789831 , 790217 , 793934 , 799394 , 801273 , 805671 , 817300 , 821418 , 823174 );
Copy
5
104.38 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
315072
384460
403635
417658
429375
443602
458243
467744
470392
473539
476154
491195
511254
511256
516826
522190
523560
546786
546805
552198
562872
567833
575344
576858
583996
590280
597864
614597
620743
622197
622235
623598
627818
638148
643028
643181
646025
648061
651209
651588
658163
712265
735086
736707
741935
750940
762136
772075
776532
778354
785005
786461
789831
790217
793934
799394
801273
805671
817300
821418
823174
]
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 (315072 , 384460 , 403635 , 417658 , 429375 , 443602 , 458243 , 467744 , 470392 , 473539 , 476154 , 491195 , 511254 , 511256 , 516826 , 522190 , 523560 , 546786 , 546805 , 552198 , 562872 , 567833 , 575344 , 576858 , 583996 , 590280 , 597864 , 614597 , 620743 , 622197 , 622235 , 623598 , 627818 , 638148 , 643028 , 643181 , 646025 , 648061 , 651209 , 651588 , 658163 , 712265 , 735086 , 736707 , 741935 , 750940 , 762136 , 772075 , 776532 , 778354 , 785005 , 786461 , 789831 , 790217 , 793934 , 799394 , 801273 , 805671 , 817300 , 821418 , 823174 );
Copy