79.48 ms (78.03%)
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
53654
114360
394229
394238
400156
402343
407180
410724
413890
429713
430095
434055
453358
453926
468774
477346
479750
492106
504046
504900
517584
519819
520205
520725
520731
523712
525487
527234
530987
531918
532263
534288
535542
541967
545102
545584
549116
554504
558194
586024
590888
597965
601447
608629
635853
653594
654222
654297
673028
677544
688991
722521
723994
735863
743414
748552
750880
753918
773554
773961
798667
800570
810822
817440
817877
826012
]
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 (53654 , 114360 , 394229 , 394238 , 400156 , 402343 , 407180 , 410724 , 413890 , 429713 , 430095 , 434055 , 453358 , 453926 , 468774 , 477346 , 479750 , 492106 , 504046 , 504900 , 517584 , 519819 , 520205 , 520725 , 520731 , 523712 , 525487 , 527234 , 530987 , 531918 , 532263 , 534288 , 535542 , 541967 , 545102 , 545584 , 549116 , 554504 , 558194 , 586024 , 590888 , 597965 , 601447 , 608629 , 635853 , 653594 , 654222 , 654297 , 673028 , 677544 , 688991 , 722521 , 723994 , 735863 , 743414 , 748552 , 750880 , 753918 , 773554 , 773961 , 798667 , 800570 , 810822 , 817440 , 817877 , 826012 );
Copy
8.04 ms (7.90%)
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
530987
549116
753918
826012
654222
677544
635853
53654
545584
673028
531918
798667
743414
601447
735863
773961
394238
545102
597965
114360
402343
817440
479750
517584
541967
722521
750880
748552
773554
817877
654297
590888
400156
504900
468774
519819
532263
554504
688991
653594
800570
394229
429713
407180
410724
413890
523712
527234
810822
453926
535542
608629
723994
430095
520725
434055
477346
558194
586024
453358
534288
525487
520205
504046
492106
520731
]
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 (530987 , 549116 , 753918 , 826012 , 654222 , 677544 , 635853 , 53654 , 545584 , 673028 , 531918 , 798667 , 743414 , 601447 , 735863 , 773961 , 394238 , 545102 , 597965 , 114360 , 402343 , 817440 , 479750 , 517584 , 541967 , 722521 , 750880 , 748552 , 773554 , 817877 , 654297 , 590888 , 400156 , 504900 , 468774 , 519819 , 532263 , 554504 , 688991 , 653594 , 800570 , 394229 , 429713 , 407180 , 410724 , 413890 , 523712 , 527234 , 810822 , 453926 , 535542 , 608629 , 723994 , 430095 , 520725 , 434055 , 477346 , 558194 , 586024 , 453358 , 534288 , 525487 , 520205 , 504046 , 492106 , 520731 );
Copy
2.51 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
53654
114360
394229
394238
400156
402343
407180
410724
413890
429713
430095
434055
453358
453926
468774
477346
479750
492106
504046
504900
517584
519819
520205
520725
520731
523712
525487
527234
530987
531918
532263
534288
535542
541967
545102
545584
549116
554504
558194
586024
590888
597965
601447
608629
635853
653594
654222
654297
673028
677544
688991
722521
723994
735863
743414
748552
750880
753918
773554
773961
798667
800570
810822
817440
817877
826012
]
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 (53654 , 114360 , 394229 , 394238 , 400156 , 402343 , 407180 , 410724 , 413890 , 429713 , 430095 , 434055 , 453358 , 453926 , 468774 , 477346 , 479750 , 492106 , 504046 , 504900 , 517584 , 519819 , 520205 , 520725 , 520731 , 523712 , 525487 , 527234 , 530987 , 531918 , 532263 , 534288 , 535542 , 541967 , 545102 , 545584 , 549116 , 554504 , 558194 , 586024 , 590888 , 597965 , 601447 , 608629 , 635853 , 653594 , 654222 , 654297 , 673028 , 677544 , 688991 , 722521 , 723994 , 735863 , 743414 , 748552 , 750880 , 753918 , 773554 , 773961 , 798667 , 800570 , 810822 , 817440 , 817877 , 826012 );
Copy