3
11.17 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
780634
721983
666819
530729
7365
729160
770115
562491
811826
725115
790988
761083
718947
737910
607215
523367
404829
675008
627740
727801
395833
516686
397849
560184
399414
328534
429181
825039
630266
475698
543872
579358
604507
714464
729911
720938
598498
598042
414651
597028
457163
633798
462470
536752
623198
478527
576720
634153
647932
448810
566786
457160
381752
425490
628082
545611
639732
562894
637123
533746
637074
620205
478672
527273
]
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 (780634 , 721983 , 666819 , 530729 , 7365 , 729160 , 770115 , 562491 , 811826 , 725115 , 790988 , 761083 , 718947 , 737910 , 607215 , 523367 , 404829 , 675008 , 627740 , 727801 , 395833 , 516686 , 397849 , 560184 , 399414 , 328534 , 429181 , 825039 , 630266 , 475698 , 543872 , 579358 , 604507 , 714464 , 729911 , 720938 , 598498 , 598042 , 414651 , 597028 , 457163 , 633798 , 462470 , 536752 , 623198 , 478527 , 576720 , 634153 , 647932 , 448810 , 566786 , 457160 , 381752 , 425490 , 628082 , 545611 , 639732 , 562894 , 637123 , 533746 , 637074 , 620205 , 478672 , 527273 );
Copy
4
1.99 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
7365
328534
381752
395833
397849
399414
404829
414651
425490
429181
448810
457160
457163
462470
475698
478527
478672
516686
523367
527273
530729
533746
536752
543872
545611
560184
562491
562894
566786
576720
579358
597028
598042
598498
604507
607215
620205
623198
627740
628082
630266
633798
634153
637074
637123
639732
647932
666819
675008
714464
718947
720938
721983
725115
727801
729160
729911
737910
761083
770115
780634
790988
811826
825039
]
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 (7365 , 328534 , 381752 , 395833 , 397849 , 399414 , 404829 , 414651 , 425490 , 429181 , 448810 , 457160 , 457163 , 462470 , 475698 , 478527 , 478672 , 516686 , 523367 , 527273 , 530729 , 533746 , 536752 , 543872 , 545611 , 560184 , 562491 , 562894 , 566786 , 576720 , 579358 , 597028 , 598042 , 598498 , 604507 , 607215 , 620205 , 623198 , 627740 , 628082 , 630266 , 633798 , 634153 , 637074 , 637123 , 639732 , 647932 , 666819 , 675008 , 714464 , 718947 , 720938 , 721983 , 725115 , 727801 , 729160 , 729911 , 737910 , 761083 , 770115 , 780634 , 790988 , 811826 , 825039 );
Copy
5
95.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
7365
328534
381752
395833
397849
399414
404829
414651
425490
429181
448810
457160
457163
462470
475698
478527
478672
516686
523367
527273
530729
533746
536752
543872
545611
560184
562491
562894
566786
576720
579358
597028
598042
598498
604507
607215
620205
623198
627740
628082
630266
633798
634153
637074
637123
639732
647932
666819
675008
714464
718947
720938
721983
725115
727801
729160
729911
737910
761083
770115
780634
790988
811826
825039
]
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 (7365 , 328534 , 381752 , 395833 , 397849 , 399414 , 404829 , 414651 , 425490 , 429181 , 448810 , 457160 , 457163 , 462470 , 475698 , 478527 , 478672 , 516686 , 523367 , 527273 , 530729 , 533746 , 536752 , 543872 , 545611 , 560184 , 562491 , 562894 , 566786 , 576720 , 579358 , 597028 , 598042 , 598498 , 604507 , 607215 , 620205 , 623198 , 627740 , 628082 , 630266 , 633798 , 634153 , 637074 , 637123 , 639732 , 647932 , 666819 , 675008 , 714464 , 718947 , 720938 , 721983 , 725115 , 727801 , 729160 , 729911 , 737910 , 761083 , 770115 , 780634 , 790988 , 811826 , 825039 );
Copy