3
16.78 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
562832
563218
541738
544281
561028
652544
699397
662137
563456
576623
583533
607707
727812
541651
541830
541831
541886
541661
541877
571213
580775
545944
547932
556778
600837
621317
587833
541594
524986
541635
541587
541752
541808
542954
566248
541640
541673
541683
541833
541888
543579
558003
541664
541774
542188
543496
576638
566688
576726
622375
542191
556987
541639
541721
542189
566702
541588
561480
562831
563441
538848
541631
541650
541688
542187
542199
541864
541871
567416
614745
652539
541646
]
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 (562832 , 563218 , 541738 , 544281 , 561028 , 652544 , 699397 , 662137 , 563456 , 576623 , 583533 , 607707 , 727812 , 541651 , 541830 , 541831 , 541886 , 541661 , 541877 , 571213 , 580775 , 545944 , 547932 , 556778 , 600837 , 621317 , 587833 , 541594 , 524986 , 541635 , 541587 , 541752 , 541808 , 542954 , 566248 , 541640 , 541673 , 541683 , 541833 , 541888 , 543579 , 558003 , 541664 , 541774 , 542188 , 543496 , 576638 , 566688 , 576726 , 622375 , 542191 , 556987 , 541639 , 541721 , 542189 , 566702 , 541588 , 561480 , 562831 , 563441 , 538848 , 541631 , 541650 , 541688 , 542187 , 542199 , 541864 , 541871 , 567416 , 614745 , 652539 , 541646 );
Copy
4
2.57 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
524986
538848
541587
541588
541594
541631
541635
541639
541640
541646
541650
541651
541661
541664
541673
541683
541688
541721
541738
541752
541774
541808
541830
541831
541833
541864
541871
541877
541886
541888
542187
542188
542189
542191
542199
542954
543496
543579
544281
545944
547932
556778
556987
558003
561028
561480
562831
562832
563218
563441
563456
566248
566688
566702
567416
571213
576623
576638
576726
580775
583533
587833
600837
607707
614745
621317
622375
652539
652544
662137
699397
727812
]
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 (524986 , 538848 , 541587 , 541588 , 541594 , 541631 , 541635 , 541639 , 541640 , 541646 , 541650 , 541651 , 541661 , 541664 , 541673 , 541683 , 541688 , 541721 , 541738 , 541752 , 541774 , 541808 , 541830 , 541831 , 541833 , 541864 , 541871 , 541877 , 541886 , 541888 , 542187 , 542188 , 542189 , 542191 , 542199 , 542954 , 543496 , 543579 , 544281 , 545944 , 547932 , 556778 , 556987 , 558003 , 561028 , 561480 , 562831 , 562832 , 563218 , 563441 , 563456 , 566248 , 566688 , 566702 , 567416 , 571213 , 576623 , 576638 , 576726 , 580775 , 583533 , 587833 , 600837 , 607707 , 614745 , 621317 , 622375 , 652539 , 652544 , 662137 , 699397 , 727812 );
Copy
5
80.75 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
524986
538848
541587
541588
541594
541631
541635
541639
541640
541646
541650
541651
541661
541664
541673
541683
541688
541721
541738
541752
541774
541808
541830
541831
541833
541864
541871
541877
541886
541888
542187
542188
542189
542191
542199
542954
543496
543579
544281
545944
547932
556778
556987
558003
561028
561480
562831
562832
563218
563441
563456
566248
566688
566702
567416
571213
576623
576638
576726
580775
583533
587833
600837
607707
614745
621317
622375
652539
652544
662137
699397
727812
]
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 (524986 , 538848 , 541587 , 541588 , 541594 , 541631 , 541635 , 541639 , 541640 , 541646 , 541650 , 541651 , 541661 , 541664 , 541673 , 541683 , 541688 , 541721 , 541738 , 541752 , 541774 , 541808 , 541830 , 541831 , 541833 , 541864 , 541871 , 541877 , 541886 , 541888 , 542187 , 542188 , 542189 , 542191 , 542199 , 542954 , 543496 , 543579 , 544281 , 545944 , 547932 , 556778 , 556987 , 558003 , 561028 , 561480 , 562831 , 562832 , 563218 , 563441 , 563456 , 566248 , 566688 , 566702 , 567416 , 571213 , 576623 , 576638 , 576726 , 580775 , 583533 , 587833 , 600837 , 607707 , 614745 , 621317 , 622375 , 652539 , 652544 , 662137 , 699397 , 727812 );
Copy