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