68.45 ms (73.71%)
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
117890
381773
390244
395602
398049
434112
437828
451860
451998
471415
478802
479780
480365
501119
501849
507651
517717
520389
521326
523855
523860
523868
524157
531227
535422
535589
542655
553478
560839
565391
569419
571277
572245
576943
578460
580174
584169
584592
586153
595988
597915
611190
613415
613853
624747
631710
639783
641077
641079
647262
677964
680776
681647
687941
719336
720437
724758
756648
769519
769725
809479
]
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 (117890 , 381773 , 390244 , 395602 , 398049 , 434112 , 437828 , 451860 , 451998 , 471415 , 478802 , 479780 , 480365 , 501119 , 501849 , 507651 , 517717 , 520389 , 521326 , 523855 , 523860 , 523868 , 524157 , 531227 , 535422 , 535589 , 542655 , 553478 , 560839 , 565391 , 569419 , 571277 , 572245 , 576943 , 578460 , 580174 , 584169 , 584592 , 586153 , 595988 , 597915 , 611190 , 613415 , 613853 , 624747 , 631710 , 639783 , 641077 , 641079 , 647262 , 677964 , 680776 , 681647 , 687941 , 719336 , 720437 , 724758 , 756648 , 769519 , 769725 , 809479 );
Copy
9.46 ms (10.19%)
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
398049
571277
542655
569419
586153
479780
578460
471415
517717
576943
584169
677964
720437
595988
597915
631710
641077
611190
480365
520389
687941
680776
451998
565391
572245
580174
809479
724758
756648
613415
641079
560839
395602
535422
521326
553478
531227
523855
524157
613853
624747
681647
719336
523868
478802
535589
381773
639783
507651
437828
501119
769725
390244
117890
501849
523860
647262
451860
769519
584592
434112
]
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 (398049 , 571277 , 542655 , 569419 , 586153 , 479780 , 578460 , 471415 , 517717 , 576943 , 584169 , 677964 , 720437 , 595988 , 597915 , 631710 , 641077 , 611190 , 480365 , 520389 , 687941 , 680776 , 451998 , 565391 , 572245 , 580174 , 809479 , 724758 , 756648 , 613415 , 641079 , 560839 , 395602 , 535422 , 521326 , 553478 , 531227 , 523855 , 524157 , 613853 , 624747 , 681647 , 719336 , 523868 , 478802 , 535589 , 381773 , 639783 , 507651 , 437828 , 501119 , 769725 , 390244 , 117890 , 501849 , 523860 , 647262 , 451860 , 769519 , 584592 , 434112 );
Copy
2.28 ms (2.46%)
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
117890
381773
390244
395602
398049
434112
437828
451860
451998
471415
478802
479780
480365
501119
501849
507651
517717
520389
521326
523855
523860
523868
524157
531227
535422
535589
542655
553478
560839
565391
569419
571277
572245
576943
578460
580174
584169
584592
586153
595988
597915
611190
613415
613853
624747
631710
639783
641077
641079
647262
677964
680776
681647
687941
719336
720437
724758
756648
769519
769725
809479
]
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 (117890 , 381773 , 390244 , 395602 , 398049 , 434112 , 437828 , 451860 , 451998 , 471415 , 478802 , 479780 , 480365 , 501119 , 501849 , 507651 , 517717 , 520389 , 521326 , 523855 , 523860 , 523868 , 524157 , 531227 , 535422 , 535589 , 542655 , 553478 , 560839 , 565391 , 569419 , 571277 , 572245 , 576943 , 578460 , 580174 , 584169 , 584592 , 586153 , 595988 , 597915 , 611190 , 613415 , 613853 , 624747 , 631710 , 639783 , 641077 , 641079 , 647262 , 677964 , 680776 , 681647 , 687941 , 719336 , 720437 , 724758 , 756648 , 769519 , 769725 , 809479 );
Copy