4
11.41 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
427448
825162
660326
758760
748115
816759
530894
718818
733985
441997
531394
532537
756971
735900
626948
802581
824874
504012
545780
789390
646525
781753
624652
524656
531149
666403
591822
724642
606883
697940
400815
796563
807837
725062
732201
518897
707524
794161
634683
507788
524652
579883
641387
607030
737274
447213
524330
438487
815897
473415
537508
580194
555479
660030
664186
644073
520802
414068
532005
664596
587950
421181
607027
587461
584208
604051
605492
]
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 (427448 , 825162 , 660326 , 758760 , 748115 , 816759 , 530894 , 718818 , 733985 , 441997 , 531394 , 532537 , 756971 , 735900 , 626948 , 802581 , 824874 , 504012 , 545780 , 789390 , 646525 , 781753 , 624652 , 524656 , 531149 , 666403 , 591822 , 724642 , 606883 , 697940 , 400815 , 796563 , 807837 , 725062 , 732201 , 518897 , 707524 , 794161 , 634683 , 507788 , 524652 , 579883 , 641387 , 607030 , 737274 , 447213 , 524330 , 438487 , 815897 , 473415 , 537508 , 580194 , 555479 , 660030 , 664186 , 644073 , 520802 , 414068 , 532005 , 664596 , 587950 , 421181 , 607027 , 587461 , 584208 , 604051 , 605492 );
Copy
5
2.65 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
400815
414068
421181
427448
438487
441997
447213
473415
504012
507788
518897
520802
524330
524652
524656
530894
531149
531394
532005
532537
537508
545780
555479
579883
580194
584208
587461
587950
591822
604051
605492
606883
607027
607030
624652
626948
634683
641387
644073
646525
660030
660326
664186
664596
666403
697940
707524
718818
724642
725062
732201
733985
735900
737274
748115
756971
758760
781753
789390
794161
796563
802581
807837
815897
816759
824874
825162
]
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 (400815 , 414068 , 421181 , 427448 , 438487 , 441997 , 447213 , 473415 , 504012 , 507788 , 518897 , 520802 , 524330 , 524652 , 524656 , 530894 , 531149 , 531394 , 532005 , 532537 , 537508 , 545780 , 555479 , 579883 , 580194 , 584208 , 587461 , 587950 , 591822 , 604051 , 605492 , 606883 , 607027 , 607030 , 624652 , 626948 , 634683 , 641387 , 644073 , 646525 , 660030 , 660326 , 664186 , 664596 , 666403 , 697940 , 707524 , 718818 , 724642 , 725062 , 732201 , 733985 , 735900 , 737274 , 748115 , 756971 , 758760 , 781753 , 789390 , 794161 , 796563 , 802581 , 807837 , 815897 , 816759 , 824874 , 825162 );
Copy
6
74.92 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
400815
414068
421181
427448
438487
441997
447213
473415
504012
507788
518897
520802
524330
524652
524656
530894
531149
531394
532005
532537
537508
545780
555479
579883
580194
584208
587461
587950
591822
604051
605492
606883
607027
607030
624652
626948
634683
641387
644073
646525
660030
660326
664186
664596
666403
697940
707524
718818
724642
725062
732201
733985
735900
737274
748115
756971
758760
781753
789390
794161
796563
802581
807837
815897
816759
824874
825162
]
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 (400815 , 414068 , 421181 , 427448 , 438487 , 441997 , 447213 , 473415 , 504012 , 507788 , 518897 , 520802 , 524330 , 524652 , 524656 , 530894 , 531149 , 531394 , 532005 , 532537 , 537508 , 545780 , 555479 , 579883 , 580194 , 584208 , 587461 , 587950 , 591822 , 604051 , 605492 , 606883 , 607027 , 607030 , 624652 , 626948 , 634683 , 641387 , 644073 , 646525 , 660030 , 660326 , 664186 , 664596 , 666403 , 697940 , 707524 , 718818 , 724642 , 725062 , 732201 , 733985 , 735900 , 737274 , 748115 , 756971 , 758760 , 781753 , 789390 , 794161 , 796563 , 802581 , 807837 , 815897 , 816759 , 824874 , 825162 );
Copy