83.24 ms (67.61%)
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
384930
387766
416794
417924
420358
424312
424746
425509
438371
441458
446947
453048
456131
467035
483542
486182
489338
497757
501240
501707
501713
505138
505392
506133
506358
513425
517301
519931
519949
524786
525011
526188
531078
531139
533846
533928
536631
536925
545407
546058
547534
563732
563992
567775
572328
573941
577371
580714
580766
586933
588311
606697
611559
614975
622773
623205
630297
630533
632794
637537
671863
696582
699397
752700
]
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 (384930 , 387766 , 416794 , 417924 , 420358 , 424312 , 424746 , 425509 , 438371 , 441458 , 446947 , 453048 , 456131 , 467035 , 483542 , 486182 , 489338 , 497757 , 501240 , 501707 , 501713 , 505138 , 505392 , 506133 , 506358 , 513425 , 517301 , 519931 , 519949 , 524786 , 525011 , 526188 , 531078 , 531139 , 533846 , 533928 , 536631 , 536925 , 545407 , 546058 , 547534 , 563732 , 563992 , 567775 , 572328 , 573941 , 577371 , 580714 , 580766 , 586933 , 588311 , 606697 , 611559 , 614975 , 622773 , 623205 , 630297 , 630533 , 632794 , 637537 , 671863 , 696582 , 699397 , 752700 );
Copy
13.15 ms (10.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
387766
416794
456131
489338
505138
506358
501707
563732
545407
563992
567775
611559
417924
446947
501713
519949
513425
531078
453048
577371
497757
425509
526188
531139
536631
467035
486182
632794
752700
441458
438371
525011
533846
580714
506133
572328
573941
630297
614975
623205
424312
420358
501240
524786
622773
536925
384930
483542
533928
505392
696582
699397
637537
519931
546058
588311
424746
517301
547534
580766
586933
630533
671863
606697
]
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 (387766 , 416794 , 456131 , 489338 , 505138 , 506358 , 501707 , 563732 , 545407 , 563992 , 567775 , 611559 , 417924 , 446947 , 501713 , 519949 , 513425 , 531078 , 453048 , 577371 , 497757 , 425509 , 526188 , 531139 , 536631 , 467035 , 486182 , 632794 , 752700 , 441458 , 438371 , 525011 , 533846 , 580714 , 506133 , 572328 , 573941 , 630297 , 614975 , 623205 , 424312 , 420358 , 501240 , 524786 , 622773 , 536925 , 384930 , 483542 , 533928 , 505392 , 696582 , 699397 , 637537 , 519931 , 546058 , 588311 , 424746 , 517301 , 547534 , 580766 , 586933 , 630533 , 671863 , 606697 );
Copy
2.63 ms (2.14%)
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
384930
387766
416794
417924
420358
424312
424746
425509
438371
441458
446947
453048
456131
467035
483542
486182
489338
497757
501240
501707
501713
505138
505392
506133
506358
513425
517301
519931
519949
524786
525011
526188
531078
531139
533846
533928
536631
536925
545407
546058
547534
563732
563992
567775
572328
573941
577371
580714
580766
586933
588311
606697
611559
614975
622773
623205
630297
630533
632794
637537
671863
696582
699397
752700
]
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 (384930 , 387766 , 416794 , 417924 , 420358 , 424312 , 424746 , 425509 , 438371 , 441458 , 446947 , 453048 , 456131 , 467035 , 483542 , 486182 , 489338 , 497757 , 501240 , 501707 , 501713 , 505138 , 505392 , 506133 , 506358 , 513425 , 517301 , 519931 , 519949 , 524786 , 525011 , 526188 , 531078 , 531139 , 533846 , 533928 , 536631 , 536925 , 545407 , 546058 , 547534 , 563732 , 563992 , 567775 , 572328 , 573941 , 577371 , 580714 , 580766 , 586933 , 588311 , 606697 , 611559 , 614975 , 622773 , 623205 , 630297 , 630533 , 632794 , 637537 , 671863 , 696582 , 699397 , 752700 );
Copy