3
6.88 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
511775
785741
788351
808033
675336
797428
788971
596944
662216
614560
628184
715136
789273
779710
573317
791071
534866
787095
743776
581195
782913
799294
783981
800352
633190
780039
789033
639654
720892
652590
622272
806077
623713
564829
553808
559629
548991
710435
688747
604939
790947
760627
505845
473966
454762
441958
457879
455745
438573
458814
475689
436214
417334
441194
444202
426812
482196
425737
439930
491738
518064
602519
504908
]
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 (511775 , 785741 , 788351 , 808033 , 675336 , 797428 , 788971 , 596944 , 662216 , 614560 , 628184 , 715136 , 789273 , 779710 , 573317 , 791071 , 534866 , 787095 , 743776 , 581195 , 782913 , 799294 , 783981 , 800352 , 633190 , 780039 , 789033 , 639654 , 720892 , 652590 , 622272 , 806077 , 623713 , 564829 , 553808 , 559629 , 548991 , 710435 , 688747 , 604939 , 790947 , 760627 , 505845 , 473966 , 454762 , 441958 , 457879 , 455745 , 438573 , 458814 , 475689 , 436214 , 417334 , 441194 , 444202 , 426812 , 482196 , 425737 , 439930 , 491738 , 518064 , 602519 , 504908 );
Copy
4
2.52 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
417334
425737
426812
436214
438573
439930
441194
441958
444202
454762
455745
457879
458814
473966
475689
482196
491738
504908
505845
511775
518064
534866
548991
553808
559629
564829
573317
581195
596944
602519
604939
614560
622272
623713
628184
633190
639654
652590
662216
675336
688747
710435
715136
720892
743776
760627
779710
780039
782913
783981
785741
787095
788351
788971
789033
789273
790947
791071
797428
799294
800352
806077
808033
]
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 (417334 , 425737 , 426812 , 436214 , 438573 , 439930 , 441194 , 441958 , 444202 , 454762 , 455745 , 457879 , 458814 , 473966 , 475689 , 482196 , 491738 , 504908 , 505845 , 511775 , 518064 , 534866 , 548991 , 553808 , 559629 , 564829 , 573317 , 581195 , 596944 , 602519 , 604939 , 614560 , 622272 , 623713 , 628184 , 633190 , 639654 , 652590 , 662216 , 675336 , 688747 , 710435 , 715136 , 720892 , 743776 , 760627 , 779710 , 780039 , 782913 , 783981 , 785741 , 787095 , 788351 , 788971 , 789033 , 789273 , 790947 , 791071 , 797428 , 799294 , 800352 , 806077 , 808033 );
Copy
5
72.01 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
417334
425737
426812
436214
438573
439930
441194
441958
444202
454762
455745
457879
458814
473966
475689
482196
491738
504908
505845
511775
518064
534866
548991
553808
559629
564829
573317
581195
596944
602519
604939
614560
622272
623713
628184
633190
639654
652590
662216
675336
688747
710435
715136
720892
743776
760627
779710
780039
782913
783981
785741
787095
788351
788971
789033
789273
790947
791071
797428
799294
800352
806077
808033
]
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 (417334 , 425737 , 426812 , 436214 , 438573 , 439930 , 441194 , 441958 , 444202 , 454762 , 455745 , 457879 , 458814 , 473966 , 475689 , 482196 , 491738 , 504908 , 505845 , 511775 , 518064 , 534866 , 548991 , 553808 , 559629 , 564829 , 573317 , 581195 , 596944 , 602519 , 604939 , 614560 , 622272 , 623713 , 628184 , 633190 , 639654 , 652590 , 662216 , 675336 , 688747 , 710435 , 715136 , 720892 , 743776 , 760627 , 779710 , 780039 , 782913 , 783981 , 785741 , 787095 , 788351 , 788971 , 789033 , 789273 , 790947 , 791071 , 797428 , 799294 , 800352 , 806077 , 808033 );
Copy