3
14.51 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
734688
536944
409031
716517
818636
815515
666659
625435
443190
827480
537815
606253
625493
790178
758668
800863
667353
800028
764584
422280
493168
559005
670715
593077
795143
506135
817716
774994
772763
448796
811764
422286
474783
528849
472652
647610
789253
446864
543708
518159
447094
518155
518151
553921
809223
422152
439763
461843
524210
448954
485061
443167
449764
521759
572697
474777
586009
496518
529143
422155
433323
459513
526951
650992
527908
568062
540071
]
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 (734688 , 536944 , 409031 , 716517 , 818636 , 815515 , 666659 , 625435 , 443190 , 827480 , 537815 , 606253 , 625493 , 790178 , 758668 , 800863 , 667353 , 800028 , 764584 , 422280 , 493168 , 559005 , 670715 , 593077 , 795143 , 506135 , 817716 , 774994 , 772763 , 448796 , 811764 , 422286 , 474783 , 528849 , 472652 , 647610 , 789253 , 446864 , 543708 , 518159 , 447094 , 518155 , 518151 , 553921 , 809223 , 422152 , 439763 , 461843 , 524210 , 448954 , 485061 , 443167 , 449764 , 521759 , 572697 , 474777 , 586009 , 496518 , 529143 , 422155 , 433323 , 459513 , 526951 , 650992 , 527908 , 568062 , 540071 );
Copy
4
4.08 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
409031
422152
422155
422280
422286
433323
439763
443167
443190
446864
447094
448796
448954
449764
459513
461843
472652
474777
474783
485061
493168
496518
506135
518151
518155
518159
521759
524210
526951
527908
528849
529143
536944
537815
540071
543708
553921
559005
568062
572697
586009
593077
606253
625435
625493
647610
650992
666659
667353
670715
716517
734688
758668
772763
774994
789253
790178
795143
800028
800863
809223
811764
815515
817716
818636
827480
]
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 (409031 , 422152 , 422155 , 422280 , 422286 , 433323 , 439763 , 443167 , 443190 , 446864 , 447094 , 448796 , 448954 , 449764 , 459513 , 461843 , 472652 , 474777 , 474783 , 485061 , 493168 , 496518 , 506135 , 518151 , 518155 , 518159 , 521759 , 524210 , 526951 , 527908 , 528849 , 529143 , 536944 , 537815 , 540071 , 543708 , 553921 , 559005 , 568062 , 572697 , 586009 , 593077 , 606253 , 625435 , 625493 , 647610 , 650992 , 666659 , 667353 , 670715 , 716517 , 734688 , 758668 , 772763 , 774994 , 789253 , 790178 , 795143 , 800028 , 800863 , 809223 , 811764 , 815515 , 817716 , 818636 , 827480 );
Copy
5
105.94 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
409031
422152
422155
422280
422286
433323
439763
443167
443190
446864
447094
448796
448954
449764
459513
461843
472652
474777
474783
485061
493168
496518
506135
518151
518155
518159
521759
524210
526951
527908
528849
529143
536944
537815
540071
543708
553921
559005
568062
572697
586009
593077
606253
625435
625493
647610
650992
666659
667353
670715
716517
734688
758668
772763
774994
789253
790178
795143
800028
800863
809223
811764
815515
817716
818636
827480
]
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 (409031 , 422152 , 422155 , 422280 , 422286 , 433323 , 439763 , 443167 , 443190 , 446864 , 447094 , 448796 , 448954 , 449764 , 459513 , 461843 , 472652 , 474777 , 474783 , 485061 , 493168 , 496518 , 506135 , 518151 , 518155 , 518159 , 521759 , 524210 , 526951 , 527908 , 528849 , 529143 , 536944 , 537815 , 540071 , 543708 , 553921 , 559005 , 568062 , 572697 , 586009 , 593077 , 606253 , 625435 , 625493 , 647610 , 650992 , 666659 , 667353 , 670715 , 716517 , 734688 , 758668 , 772763 , 774994 , 789253 , 790178 , 795143 , 800028 , 800863 , 809223 , 811764 , 815515 , 817716 , 818636 , 827480 );
Copy