75.62 ms (64.26%)
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
96021
119927
392843
410686
413404
413406
415855
417682
432700
433001
439532
439601
440906
440944
447608
450474
462342
463802
467907
470092
474872
476676
477223
477757
486240
497837
500910
505138
505139
507288
511831
531869
532221
537220
547576
550672
555752
560286
582829
589042
599967
604183
638552
639184
648924
689525
705099
706232
710096
720139
720207
728146
728555
740250
740315
750568
757372
761717
765721
782452
785503
792137
796976
804765
811690
812552
]
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 (96021 , 119927 , 392843 , 410686 , 413404 , 413406 , 415855 , 417682 , 432700 , 433001 , 439532 , 439601 , 440906 , 440944 , 447608 , 450474 , 462342 , 463802 , 467907 , 470092 , 474872 , 476676 , 477223 , 477757 , 486240 , 497837 , 500910 , 505138 , 505139 , 507288 , 511831 , 531869 , 532221 , 537220 , 547576 , 550672 , 555752 , 560286 , 582829 , 589042 , 599967 , 604183 , 638552 , 639184 , 648924 , 689525 , 705099 , 706232 , 710096 , 720139 , 720207 , 728146 , 728555 , 740250 , 740315 , 750568 , 757372 , 761717 , 765721 , 782452 , 785503 , 792137 , 796976 , 804765 , 811690 , 812552 );
Copy
9.27 ms (7.88%)
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
804765
560286
761717
728146
785503
392843
705099
740315
589042
706232
740250
96021
531869
765721
432700
505139
811690
119927
639184
417682
537220
582829
792137
505138
750568
689525
812552
728555
757372
410686
440906
474872
555752
439532
710096
720139
500910
470092
447608
486240
532221
720207
413404
415855
433001
547576
782452
796976
450474
477757
440944
463802
462342
511831
413406
550672
638552
439601
648924
477223
599967
507288
467907
476676
604183
497837
]
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 (804765 , 560286 , 761717 , 728146 , 785503 , 392843 , 705099 , 740315 , 589042 , 706232 , 740250 , 96021 , 531869 , 765721 , 432700 , 505139 , 811690 , 119927 , 639184 , 417682 , 537220 , 582829 , 792137 , 505138 , 750568 , 689525 , 812552 , 728555 , 757372 , 410686 , 440906 , 474872 , 555752 , 439532 , 710096 , 720139 , 500910 , 470092 , 447608 , 486240 , 532221 , 720207 , 413404 , 415855 , 433001 , 547576 , 782452 , 796976 , 450474 , 477757 , 440944 , 463802 , 462342 , 511831 , 413406 , 550672 , 638552 , 439601 , 648924 , 477223 , 599967 , 507288 , 467907 , 476676 , 604183 , 497837 );
Copy
2.64 ms (2.25%)
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
96021
119927
392843
410686
413404
413406
415855
417682
432700
433001
439532
439601
440906
440944
447608
450474
462342
463802
467907
470092
474872
476676
477223
477757
486240
497837
500910
505138
505139
507288
511831
531869
532221
537220
547576
550672
555752
560286
582829
589042
599967
604183
638552
639184
648924
689525
705099
706232
710096
720139
720207
728146
728555
740250
740315
750568
757372
761717
765721
782452
785503
792137
796976
804765
811690
812552
]
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 (96021 , 119927 , 392843 , 410686 , 413404 , 413406 , 415855 , 417682 , 432700 , 433001 , 439532 , 439601 , 440906 , 440944 , 447608 , 450474 , 462342 , 463802 , 467907 , 470092 , 474872 , 476676 , 477223 , 477757 , 486240 , 497837 , 500910 , 505138 , 505139 , 507288 , 511831 , 531869 , 532221 , 537220 , 547576 , 550672 , 555752 , 560286 , 582829 , 589042 , 599967 , 604183 , 638552 , 639184 , 648924 , 689525 , 705099 , 706232 , 710096 , 720139 , 720207 , 728146 , 728555 , 740250 , 740315 , 750568 , 757372 , 761717 , 765721 , 782452 , 785503 , 792137 , 796976 , 804765 , 811690 , 812552 );
Copy