3
12.94 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
421914
418900
421810
443190
443188
625493
457187
603601
779410
623226
520916
732140
400481
532131
421862
742276
493168
523902
443182
443166
400486
549648
474778
472652
439743
763529
397903
474792
474776
517281
439809
506136
422141
661991
421875
445664
439770
518155
518160
439763
421825
485057
443801
474783
443722
433380
518159
422155
508701
421900
521759
529143
440693
457194
462569
523840
421878
521763
525964
400491
454141
474777
523907
506133
443167
472299
519589
421876
547612
601851
]
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 (421914 , 418900 , 421810 , 443190 , 443188 , 625493 , 457187 , 603601 , 779410 , 623226 , 520916 , 732140 , 400481 , 532131 , 421862 , 742276 , 493168 , 523902 , 443182 , 443166 , 400486 , 549648 , 474778 , 472652 , 439743 , 763529 , 397903 , 474792 , 474776 , 517281 , 439809 , 506136 , 422141 , 661991 , 421875 , 445664 , 439770 , 518155 , 518160 , 439763 , 421825 , 485057 , 443801 , 474783 , 443722 , 433380 , 518159 , 422155 , 508701 , 421900 , 521759 , 529143 , 440693 , 457194 , 462569 , 523840 , 421878 , 521763 , 525964 , 400491 , 454141 , 474777 , 523907 , 506133 , 443167 , 472299 , 519589 , 421876 , 547612 , 601851 );
Copy
4
2.43 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
397903
400481
400486
400491
418900
421810
421825
421862
421875
421876
421878
421900
421914
422141
422155
433380
439743
439763
439770
439809
440693
443166
443167
443182
443188
443190
443722
443801
445664
454141
457187
457194
462569
472299
472652
474776
474777
474778
474783
474792
485057
493168
506133
506136
508701
517281
518155
518159
518160
519589
520916
521759
521763
523840
523902
523907
525964
529143
532131
547612
549648
601851
603601
623226
625493
661991
732140
742276
763529
779410
]
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 (397903 , 400481 , 400486 , 400491 , 418900 , 421810 , 421825 , 421862 , 421875 , 421876 , 421878 , 421900 , 421914 , 422141 , 422155 , 433380 , 439743 , 439763 , 439770 , 439809 , 440693 , 443166 , 443167 , 443182 , 443188 , 443190 , 443722 , 443801 , 445664 , 454141 , 457187 , 457194 , 462569 , 472299 , 472652 , 474776 , 474777 , 474778 , 474783 , 474792 , 485057 , 493168 , 506133 , 506136 , 508701 , 517281 , 518155 , 518159 , 518160 , 519589 , 520916 , 521759 , 521763 , 523840 , 523902 , 523907 , 525964 , 529143 , 532131 , 547612 , 549648 , 601851 , 603601 , 623226 , 625493 , 661991 , 732140 , 742276 , 763529 , 779410 );
Copy
5
92.23 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
397903
400481
400486
400491
418900
421810
421825
421862
421875
421876
421878
421900
421914
422141
422155
433380
439743
439763
439770
439809
440693
443166
443167
443182
443188
443190
443722
443801
445664
454141
457187
457194
462569
472299
472652
474776
474777
474778
474783
474792
485057
493168
506133
506136
508701
517281
518155
518159
518160
519589
520916
521759
521763
523840
523902
523907
525964
529143
532131
547612
549648
601851
603601
623226
625493
661991
732140
742276
763529
779410
]
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 (397903 , 400481 , 400486 , 400491 , 418900 , 421810 , 421825 , 421862 , 421875 , 421876 , 421878 , 421900 , 421914 , 422141 , 422155 , 433380 , 439743 , 439763 , 439770 , 439809 , 440693 , 443166 , 443167 , 443182 , 443188 , 443190 , 443722 , 443801 , 445664 , 454141 , 457187 , 457194 , 462569 , 472299 , 472652 , 474776 , 474777 , 474778 , 474783 , 474792 , 485057 , 493168 , 506133 , 506136 , 508701 , 517281 , 518155 , 518159 , 518160 , 519589 , 520916 , 521759 , 521763 , 523840 , 523902 , 523907 , 525964 , 529143 , 532131 , 547612 , 549648 , 601851 , 603601 , 623226 , 625493 , 661991 , 732140 , 742276 , 763529 , 779410 );
Copy