3
17.50 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
747648
721091
417733
756144
723819
740763
603732
791235
530257
765084
673880
446345
701935
789033
487205
561435
680749
769329
652129
484304
673860
608070
685823
617617
524206
474146
658223
679306
497140
658226
630716
730497
619477
435046
417730
561433
577896
464598
495292
490592
524555
577553
542146
585788
436437
482758
517832
558814
534172
551820
466747
598794
537926
637065
463072
577593
541316
655591
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 (747648 , 721091 , 417733 , 756144 , 723819 , 740763 , 603732 , 791235 , 530257 , 765084 , 673880 , 446345 , 701935 , 789033 , 487205 , 561435 , 680749 , 769329 , 652129 , 484304 , 673860 , 608070 , 685823 , 617617 , 524206 , 474146 , 658223 , 679306 , 497140 , 658226 , 630716 , 730497 , 619477 , 435046 , 417730 , 561433 , 577896 , 464598 , 495292 , 490592 , 524555 , 577553 , 542146 , 585788 , 436437 , 482758 , 517832 , 558814 , 534172 , 551820 , 466747 , 598794 , 537926 , 637065 , 463072 , 577593 , 541316 , 655591 , 537672 , 537670 , 519563 , 598172 , 544686 , 501119 );
Copy
4
2.69 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
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
765084
769329
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 (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 , 765084 , 769329 , 789033 , 791235 );
Copy
5
82.77 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
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
765084
769329
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 (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 , 765084 , 769329 , 789033 , 791235 );
Copy