3
11.55 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
482732
445221
453535
668771
396965
704480
820110
737722
785501
812208
783918
696785
608152
789884
803313
812900
395856
492568
759657
755064
481885
727007
791659
562600
775538
789863
795120
745759
771868
459767
698773
579085
614094
644083
794776
761250
789661
444759
689561
596828
759567
767957
767964
398390
447108
484925
479426
581951
395819
465819
444098
399401
554300
693077
597947
623035
586469
482084
443093
524573
484127
567152
397548
412738
404811
529125
399263
452828
523809
609922
]
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 (482732 , 445221 , 453535 , 668771 , 396965 , 704480 , 820110 , 737722 , 785501 , 812208 , 783918 , 696785 , 608152 , 789884 , 803313 , 812900 , 395856 , 492568 , 759657 , 755064 , 481885 , 727007 , 791659 , 562600 , 775538 , 789863 , 795120 , 745759 , 771868 , 459767 , 698773 , 579085 , 614094 , 644083 , 794776 , 761250 , 789661 , 444759 , 689561 , 596828 , 759567 , 767957 , 767964 , 398390 , 447108 , 484925 , 479426 , 581951 , 395819 , 465819 , 444098 , 399401 , 554300 , 693077 , 597947 , 623035 , 586469 , 482084 , 443093 , 524573 , 484127 , 567152 , 397548 , 412738 , 404811 , 529125 , 399263 , 452828 , 523809 , 609922 );
Copy
4
2.50 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
395819
395856
396965
397548
398390
399263
399401
404811
412738
443093
444098
444759
445221
447108
452828
453535
459767
465819
479426
481885
482084
482732
484127
484925
492568
523809
524573
529125
554300
562600
567152
579085
581951
586469
596828
597947
608152
609922
614094
623035
644083
668771
689561
693077
696785
698773
704480
727007
737722
745759
755064
759567
759657
761250
767957
767964
771868
775538
783918
785501
789661
789863
789884
791659
794776
795120
803313
812208
812900
820110
]
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 (395819 , 395856 , 396965 , 397548 , 398390 , 399263 , 399401 , 404811 , 412738 , 443093 , 444098 , 444759 , 445221 , 447108 , 452828 , 453535 , 459767 , 465819 , 479426 , 481885 , 482084 , 482732 , 484127 , 484925 , 492568 , 523809 , 524573 , 529125 , 554300 , 562600 , 567152 , 579085 , 581951 , 586469 , 596828 , 597947 , 608152 , 609922 , 614094 , 623035 , 644083 , 668771 , 689561 , 693077 , 696785 , 698773 , 704480 , 727007 , 737722 , 745759 , 755064 , 759567 , 759657 , 761250 , 767957 , 767964 , 771868 , 775538 , 783918 , 785501 , 789661 , 789863 , 789884 , 791659 , 794776 , 795120 , 803313 , 812208 , 812900 , 820110 );
Copy
5
84.16 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
395819
395856
396965
397548
398390
399263
399401
404811
412738
443093
444098
444759
445221
447108
452828
453535
459767
465819
479426
481885
482084
482732
484127
484925
492568
523809
524573
529125
554300
562600
567152
579085
581951
586469
596828
597947
608152
609922
614094
623035
644083
668771
689561
693077
696785
698773
704480
727007
737722
745759
755064
759567
759657
761250
767957
767964
771868
775538
783918
785501
789661
789863
789884
791659
794776
795120
803313
812208
812900
820110
]
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 (395819 , 395856 , 396965 , 397548 , 398390 , 399263 , 399401 , 404811 , 412738 , 443093 , 444098 , 444759 , 445221 , 447108 , 452828 , 453535 , 459767 , 465819 , 479426 , 481885 , 482084 , 482732 , 484127 , 484925 , 492568 , 523809 , 524573 , 529125 , 554300 , 562600 , 567152 , 579085 , 581951 , 586469 , 596828 , 597947 , 608152 , 609922 , 614094 , 623035 , 644083 , 668771 , 689561 , 693077 , 696785 , 698773 , 704480 , 727007 , 737722 , 745759 , 755064 , 759567 , 759657 , 761250 , 767957 , 767964 , 771868 , 775538 , 783918 , 785501 , 789661 , 789863 , 789884 , 791659 , 794776 , 795120 , 803313 , 812208 , 812900 , 820110 );
Copy