116.43 ms (77.90%)
1
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
384162
417730
417733
435046
436437
446345
463072
464598
466747
474146
482758
484304
487205
490592
495292
497140
501119
517832
519563
524206
524555
530257
534172
537670
537672
537926
541316
542146
544686
551820
558814
561433
561435
577553
577593
577896
585788
598172
598794
603732
608070
617617
619477
630716
637065
652129
655591
658223
658226
673860
673880
679306
680749
685823
701935
721091
723819
730497
740763
747648
756144
760187
765084
769329
776141
778078
789033
791235
]
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 (384162 , 417730 , 417733 , 435046 , 436437 , 446345 , 463072 , 464598 , 466747 , 474146 , 482758 , 484304 , 487205 , 490592 , 495292 , 497140 , 501119 , 517832 , 519563 , 524206 , 524555 , 530257 , 534172 , 537670 , 537672 , 537926 , 541316 , 542146 , 544686 , 551820 , 558814 , 561433 , 561435 , 577553 , 577593 , 577896 , 585788 , 598172 , 598794 , 603732 , 608070 , 617617 , 619477 , 630716 , 637065 , 652129 , 655591 , 658223 , 658226 , 673860 , 673880 , 679306 , 680749 , 685823 , 701935 , 721091 , 723819 , 730497 , 740763 , 747648 , 756144 , 760187 , 765084 , 769329 , 776141 , 778078 , 789033 , 791235 );
Copy
10.84 ms (7.26%)
1
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
497140
541316
463072
577553
747648
721091
760187
756144
417733
603732
530257
723819
740763
791235
384162
446345
673880
778078
765084
487205
561435
652129
680749
789033
769329
701935
484304
673860
685823
608070
474146
658223
658226
679306
630716
617617
776141
524206
417730
542146
577896
561433
585788
730497
619477
464598
435046
495292
490592
524555
482758
551820
558814
466747
436437
534172
517832
537926
577593
655591
598794
637065
537672
537670
519563
598172
544686
501119
]
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 (497140 , 541316 , 463072 , 577553 , 747648 , 721091 , 760187 , 756144 , 417733 , 603732 , 530257 , 723819 , 740763 , 791235 , 384162 , 446345 , 673880 , 778078 , 765084 , 487205 , 561435 , 652129 , 680749 , 789033 , 769329 , 701935 , 484304 , 673860 , 685823 , 608070 , 474146 , 658223 , 658226 , 679306 , 630716 , 617617 , 776141 , 524206 , 417730 , 542146 , 577896 , 561433 , 585788 , 730497 , 619477 , 464598 , 435046 , 495292 , 490592 , 524555 , 482758 , 551820 , 558814 , 466747 , 436437 , 534172 , 517832 , 537926 , 577593 , 655591 , 598794 , 637065 , 537672 , 537670 , 519563 , 598172 , 544686 , 501119 );
Copy
3.28 ms (2.19%)
1
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
384162
417730
417733
435046
436437
446345
463072
464598
466747
474146
482758
484304
487205
490592
495292
497140
501119
517832
519563
524206
524555
530257
534172
537670
537672
537926
541316
542146
544686
551820
558814
561433
561435
577553
577593
577896
585788
598172
598794
603732
608070
617617
619477
630716
637065
652129
655591
658223
658226
673860
673880
679306
680749
685823
701935
721091
723819
730497
740763
747648
756144
760187
765084
769329
776141
778078
789033
791235
]
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 (384162 , 417730 , 417733 , 435046 , 436437 , 446345 , 463072 , 464598 , 466747 , 474146 , 482758 , 484304 , 487205 , 490592 , 495292 , 497140 , 501119 , 517832 , 519563 , 524206 , 524555 , 530257 , 534172 , 537670 , 537672 , 537926 , 541316 , 542146 , 544686 , 551820 , 558814 , 561433 , 561435 , 577553 , 577593 , 577896 , 585788 , 598172 , 598794 , 603732 , 608070 , 617617 , 619477 , 630716 , 637065 , 652129 , 655591 , 658223 , 658226 , 673860 , 673880 , 679306 , 680749 , 685823 , 701935 , 721091 , 723819 , 730497 , 740763 , 747648 , 756144 , 760187 , 765084 , 769329 , 776141 , 778078 , 789033 , 791235 );
Copy