4
7.15 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
562411
719945
821558
732959
721271
821872
733561
827974
542450
631219
547415
725274
768996
397666
702699
789818
794852
827963
541028
565827
706905
620062
791570
739883
817404
540462
758413
397533
481375
704425
642984
798820
521684
522163
667459
614007
593057
642926
767646
615073
734397
550077
556683
599801
606156
520545
382518
540652
525923
546856
599149
810466
420104
525538
547062
601213
493382
469042
538854
525102
518592
605913
]
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 (562411 , 719945 , 821558 , 732959 , 721271 , 821872 , 733561 , 827974 , 542450 , 631219 , 547415 , 725274 , 768996 , 397666 , 702699 , 789818 , 794852 , 827963 , 541028 , 565827 , 706905 , 620062 , 791570 , 739883 , 817404 , 540462 , 758413 , 397533 , 481375 , 704425 , 642984 , 798820 , 521684 , 522163 , 667459 , 614007 , 593057 , 642926 , 767646 , 615073 , 734397 , 550077 , 556683 , 599801 , 606156 , 520545 , 382518 , 540652 , 525923 , 546856 , 599149 , 810466 , 420104 , 525538 , 547062 , 601213 , 493382 , 469042 , 538854 , 525102 , 518592 , 605913 );
Copy
5
2.34 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
382518
397533
397666
420104
469042
481375
493382
518592
520545
521684
522163
525102
525538
525923
538854
540462
540652
541028
542450
546856
547062
547415
550077
556683
562411
565827
593057
599149
599801
601213
605913
606156
614007
615073
620062
631219
642926
642984
667459
702699
704425
706905
719945
721271
725274
732959
733561
734397
739883
758413
767646
768996
789818
791570
794852
798820
810466
817404
821558
821872
827963
827974
]
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 (382518 , 397533 , 397666 , 420104 , 469042 , 481375 , 493382 , 518592 , 520545 , 521684 , 522163 , 525102 , 525538 , 525923 , 538854 , 540462 , 540652 , 541028 , 542450 , 546856 , 547062 , 547415 , 550077 , 556683 , 562411 , 565827 , 593057 , 599149 , 599801 , 601213 , 605913 , 606156 , 614007 , 615073 , 620062 , 631219 , 642926 , 642984 , 667459 , 702699 , 704425 , 706905 , 719945 , 721271 , 725274 , 732959 , 733561 , 734397 , 739883 , 758413 , 767646 , 768996 , 789818 , 791570 , 794852 , 798820 , 810466 , 817404 , 821558 , 821872 , 827963 , 827974 );
Copy
6
72.89 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
382518
397533
397666
420104
469042
481375
493382
518592
520545
521684
522163
525102
525538
525923
538854
540462
540652
541028
542450
546856
547062
547415
550077
556683
562411
565827
593057
599149
599801
601213
605913
606156
614007
615073
620062
631219
642926
642984
667459
702699
704425
706905
719945
721271
725274
732959
733561
734397
739883
758413
767646
768996
789818
791570
794852
798820
810466
817404
821558
821872
827963
827974
]
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 (382518 , 397533 , 397666 , 420104 , 469042 , 481375 , 493382 , 518592 , 520545 , 521684 , 522163 , 525102 , 525538 , 525923 , 538854 , 540462 , 540652 , 541028 , 542450 , 546856 , 547062 , 547415 , 550077 , 556683 , 562411 , 565827 , 593057 , 599149 , 599801 , 601213 , 605913 , 606156 , 614007 , 615073 , 620062 , 631219 , 642926 , 642984 , 667459 , 702699 , 704425 , 706905 , 719945 , 721271 , 725274 , 732959 , 733561 , 734397 , 739883 , 758413 , 767646 , 768996 , 789818 , 791570 , 794852 , 798820 , 810466 , 817404 , 821558 , 821872 , 827963 , 827974 );
Copy