100.76 ms (60.93%)
1
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
394258
398564
415598
421132
428910
440771
446132
446269
452391
454043
454141
455206
455957
459251
460181
460197
460677
464332
464410
466368
467663
471408
475174
492366
505973
513707
517526
519929
519934
519936
521359
521391
523323
525233
526394
527181
531993
537020
549661
557924
561597
562884
562952
565012
565626
575241
575704
592933
603055
606619
617190
646199
662140
682181
702312
714062
716935
742638
756714
756803
756863
780795
786127
788142
793282
793930
818672
820746
]
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 (394258 , 398564 , 415598 , 421132 , 428910 , 440771 , 446132 , 446269 , 452391 , 454043 , 454141 , 455206 , 455957 , 459251 , 460181 , 460197 , 460677 , 464332 , 464410 , 466368 , 467663 , 471408 , 475174 , 492366 , 505973 , 513707 , 517526 , 519929 , 519934 , 519936 , 521359 , 521391 , 523323 , 525233 , 526394 , 527181 , 531993 , 537020 , 549661 , 557924 , 561597 , 562884 , 562952 , 565012 , 565626 , 575241 , 575704 , 592933 , 603055 , 606619 , 617190 , 646199 , 662140 , 682181 , 702312 , 714062 , 716935 , 742638 , 756714 , 756803 , 756863 , 780795 , 786127 , 788142 , 793282 , 793930 , 818672 , 820746 );
Copy
9.39 ms (5.68%)
1
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
531993
820746
742638
818672
716935
786127
788142
793282
662140
464410
780795
398564
702312
592933
756863
793930
454043
562884
471408
421132
519934
549661
606619
452391
459251
561597
565012
714062
562952
779905
428910
394258
756714
523323
565626
682181
519929
446269
460181
517526
526394
464332
467663
492366
557924
756803
415598
466368
505973
521391
525233
617190
455957
460677
575704
440771
475174
537020
527181
513707
446132
460197
603055
519936
521359
646199
454141
575241
455206
]
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 (531993 , 820746 , 742638 , 818672 , 716935 , 786127 , 788142 , 793282 , 662140 , 464410 , 780795 , 398564 , 702312 , 592933 , 756863 , 793930 , 454043 , 562884 , 471408 , 421132 , 519934 , 549661 , 606619 , 452391 , 459251 , 561597 , 565012 , 714062 , 562952 , 779905 , 428910 , 394258 , 756714 , 523323 , 565626 , 682181 , 519929 , 446269 , 460181 , 517526 , 526394 , 464332 , 467663 , 492366 , 557924 , 756803 , 415598 , 466368 , 505973 , 521391 , 525233 , 617190 , 455957 , 460677 , 575704 , 440771 , 475174 , 537020 , 527181 , 513707 , 446132 , 460197 , 603055 , 519936 , 521359 , 646199 , 454141 , 575241 , 455206 );
Copy
2.27 ms (1.38%)
1
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
394258
398564
415598
421132
428910
440771
446132
446269
452391
454043
454141
455206
455957
459251
460181
460197
460677
464332
464410
466368
467663
471408
475174
492366
505973
513707
517526
519929
519934
519936
521359
521391
523323
525233
526394
527181
531993
537020
549661
557924
561597
562884
562952
565012
565626
575241
575704
592933
603055
606619
617190
646199
662140
682181
702312
714062
716935
742638
756714
756803
756863
780795
786127
788142
793282
793930
818672
820746
]
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 (394258 , 398564 , 415598 , 421132 , 428910 , 440771 , 446132 , 446269 , 452391 , 454043 , 454141 , 455206 , 455957 , 459251 , 460181 , 460197 , 460677 , 464332 , 464410 , 466368 , 467663 , 471408 , 475174 , 492366 , 505973 , 513707 , 517526 , 519929 , 519934 , 519936 , 521359 , 521391 , 523323 , 525233 , 526394 , 527181 , 531993 , 537020 , 549661 , 557924 , 561597 , 562884 , 562952 , 565012 , 565626 , 575241 , 575704 , 592933 , 603055 , 606619 , 617190 , 646199 , 662140 , 682181 , 702312 , 714062 , 716935 , 742638 , 756714 , 756803 , 756863 , 780795 , 786127 , 788142 , 793282 , 793930 , 818672 , 820746 );
Copy