3
10.83 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
709684
718674
562255
269876
723529
671243
731797
788669
731794
387545
644057
688029
521939
395839
810192
700941
649094
625694
665709
790390
748158
709624
497568
821864
410093
678954
559055
748139
474007
635191
730098
568281
425987
560112
720871
399388
515182
589743
451587
521928
280073
521977
656815
517857
541110
605438
478779
637751
459805
540270
450239
614264
517869
512085
442835
589750
562246
473180
728288
454975
492323
488728
491209
430625
776235
486963
633421
530513
768739
522616
]
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 (709684 , 718674 , 562255 , 269876 , 723529 , 671243 , 731797 , 788669 , 731794 , 387545 , 644057 , 688029 , 521939 , 395839 , 810192 , 700941 , 649094 , 625694 , 665709 , 790390 , 748158 , 709624 , 497568 , 821864 , 410093 , 678954 , 559055 , 748139 , 474007 , 635191 , 730098 , 568281 , 425987 , 560112 , 720871 , 399388 , 515182 , 589743 , 451587 , 521928 , 280073 , 521977 , 656815 , 517857 , 541110 , 605438 , 478779 , 637751 , 459805 , 540270 , 450239 , 614264 , 517869 , 512085 , 442835 , 589750 , 562246 , 473180 , 728288 , 454975 , 492323 , 488728 , 491209 , 430625 , 776235 , 486963 , 633421 , 530513 , 768739 , 522616 );
Copy
4
2.80 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
269876
280073
387545
395839
399388
410093
425987
430625
442835
450239
451587
454975
459805
473180
474007
478779
486963
488728
491209
492323
497568
512085
515182
517857
517869
521928
521939
521977
522616
530513
540270
541110
559055
560112
562246
562255
568281
589743
589750
605438
614264
625694
633421
635191
637751
644057
649094
656815
665709
671243
678954
688029
700941
709624
709684
718674
720871
723529
728288
730098
731794
731797
748139
748158
768739
776235
788669
790390
810192
821864
]
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 (269876 , 280073 , 387545 , 395839 , 399388 , 410093 , 425987 , 430625 , 442835 , 450239 , 451587 , 454975 , 459805 , 473180 , 474007 , 478779 , 486963 , 488728 , 491209 , 492323 , 497568 , 512085 , 515182 , 517857 , 517869 , 521928 , 521939 , 521977 , 522616 , 530513 , 540270 , 541110 , 559055 , 560112 , 562246 , 562255 , 568281 , 589743 , 589750 , 605438 , 614264 , 625694 , 633421 , 635191 , 637751 , 644057 , 649094 , 656815 , 665709 , 671243 , 678954 , 688029 , 700941 , 709624 , 709684 , 718674 , 720871 , 723529 , 728288 , 730098 , 731794 , 731797 , 748139 , 748158 , 768739 , 776235 , 788669 , 790390 , 810192 , 821864 );
Copy
5
75.46 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
269876
280073
387545
395839
399388
410093
425987
430625
442835
450239
451587
454975
459805
473180
474007
478779
486963
488728
491209
492323
497568
512085
515182
517857
517869
521928
521939
521977
522616
530513
540270
541110
559055
560112
562246
562255
568281
589743
589750
605438
614264
625694
633421
635191
637751
644057
649094
656815
665709
671243
678954
688029
700941
709624
709684
718674
720871
723529
728288
730098
731794
731797
748139
748158
768739
776235
788669
790390
810192
821864
]
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 (269876 , 280073 , 387545 , 395839 , 399388 , 410093 , 425987 , 430625 , 442835 , 450239 , 451587 , 454975 , 459805 , 473180 , 474007 , 478779 , 486963 , 488728 , 491209 , 492323 , 497568 , 512085 , 515182 , 517857 , 517869 , 521928 , 521939 , 521977 , 522616 , 530513 , 540270 , 541110 , 559055 , 560112 , 562246 , 562255 , 568281 , 589743 , 589750 , 605438 , 614264 , 625694 , 633421 , 635191 , 637751 , 644057 , 649094 , 656815 , 665709 , 671243 , 678954 , 688029 , 700941 , 709624 , 709684 , 718674 , 720871 , 723529 , 728288 , 730098 , 731794 , 731797 , 748139 , 748158 , 768739 , 776235 , 788669 , 790390 , 810192 , 821864 );
Copy