3
8.38 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
692730
627213
768032
450065
346907
433620
797509
828661
731909
792898
818990
754085
796841
810506
803156
818975
820195
800664
750886
823789
828566
810480
571695
776868
758317
806476
813963
663182
760642
616217
705140
432546
800569
724990
759555
760184
721819
433822
730710
760637
767986
428517
469366
505221
768692
518797
515710
603656
802631
759554
448013
480641
433049
515634
636353
779506
800677
434093
531408
511957
600798
824303
513202
539945
590130
509247
]
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 (692730 , 627213 , 768032 , 450065 , 346907 , 433620 , 797509 , 828661 , 731909 , 792898 , 818990 , 754085 , 796841 , 810506 , 803156 , 818975 , 820195 , 800664 , 750886 , 823789 , 828566 , 810480 , 571695 , 776868 , 758317 , 806476 , 813963 , 663182 , 760642 , 616217 , 705140 , 432546 , 800569 , 724990 , 759555 , 760184 , 721819 , 433822 , 730710 , 760637 , 767986 , 428517 , 469366 , 505221 , 768692 , 518797 , 515710 , 603656 , 802631 , 759554 , 448013 , 480641 , 433049 , 515634 , 636353 , 779506 , 800677 , 434093 , 531408 , 511957 , 600798 , 824303 , 513202 , 539945 , 590130 , 509247 );
Copy
4
2.68 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
346907
428517
432546
433049
433620
433822
434093
448013
450065
469366
480641
505221
509247
511957
513202
515634
515710
518797
531408
539945
571695
590130
600798
603656
616217
627213
636353
663182
692730
705140
721819
724990
730710
731909
750886
754085
758317
759554
759555
760184
760637
760642
767986
768032
768692
776868
779506
792898
796841
797509
800569
800664
800677
802631
803156
806476
810480
810506
813963
818975
818990
820195
823789
824303
828566
]
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 (346907 , 428517 , 432546 , 433049 , 433620 , 433822 , 434093 , 448013 , 450065 , 469366 , 480641 , 505221 , 509247 , 511957 , 513202 , 515634 , 515710 , 518797 , 531408 , 539945 , 571695 , 590130 , 600798 , 603656 , 616217 , 627213 , 636353 , 663182 , 692730 , 705140 , 721819 , 724990 , 730710 , 731909 , 750886 , 754085 , 758317 , 759554 , 759555 , 760184 , 760637 , 760642 , 767986 , 768032 , 768692 , 776868 , 779506 , 792898 , 796841 , 797509 , 800569 , 800664 , 800677 , 802631 , 803156 , 806476 , 810480 , 810506 , 813963 , 818975 , 818990 , 820195 , 823789 , 824303 , 828566 );
Copy
5
92.25 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
346907
428517
432546
433049
433620
433822
434093
448013
450065
469366
480641
505221
509247
511957
513202
515634
515710
518797
531408
539945
571695
590130
600798
603656
616217
627213
636353
663182
692730
705140
721819
724990
730710
731909
750886
754085
758317
759554
759555
760184
760637
760642
767986
768032
768692
776868
779506
792898
796841
797509
800569
800664
800677
802631
803156
806476
810480
810506
813963
818975
818990
820195
823789
824303
828566
]
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 (346907 , 428517 , 432546 , 433049 , 433620 , 433822 , 434093 , 448013 , 450065 , 469366 , 480641 , 505221 , 509247 , 511957 , 513202 , 515634 , 515710 , 518797 , 531408 , 539945 , 571695 , 590130 , 600798 , 603656 , 616217 , 627213 , 636353 , 663182 , 692730 , 705140 , 721819 , 724990 , 730710 , 731909 , 750886 , 754085 , 758317 , 759554 , 759555 , 760184 , 760637 , 760642 , 767986 , 768032 , 768692 , 776868 , 779506 , 792898 , 796841 , 797509 , 800569 , 800664 , 800677 , 802631 , 803156 , 806476 , 810480 , 810506 , 813963 , 818975 , 818990 , 820195 , 823789 , 824303 , 828566 );
Copy