81.56 ms (62.22%)
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
370875
400233
402141
408969
415554
417756
421151
437598
446148
453144
453313
454709
456518
458420
463773
466930
472438
479874
493117
499860
501179
508950
510889
511536
514768
518201
518589
521446
522441
522604
522666
524560
527175
527232
533831
536903
549817
552270
552984
559216
562951
566761
581882
590079
593534
596851
600864
601667
602933
621343
624905
626066
641414
644268
658445
673143
704218
714743
787075
788994
791048
797353
805945
810933
812418
814911
815063
]
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 (370875 , 400233 , 402141 , 408969 , 415554 , 417756 , 421151 , 437598 , 446148 , 453144 , 453313 , 454709 , 456518 , 458420 , 463773 , 466930 , 472438 , 479874 , 493117 , 499860 , 501179 , 508950 , 510889 , 511536 , 514768 , 518201 , 518589 , 521446 , 522441 , 522604 , 522666 , 524560 , 527175 , 527232 , 533831 , 536903 , 549817 , 552270 , 552984 , 559216 , 562951 , 566761 , 581882 , 590079 , 593534 , 596851 , 600864 , 601667 , 602933 , 621343 , 624905 , 626066 , 641414 , 644268 , 658445 , 673143 , 704218 , 714743 , 787075 , 788994 , 791048 , 797353 , 805945 , 810933 , 812418 , 814911 , 815063 );
Copy
12.42 ms (9.47%)
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
562951
714743
370875
408969
415554
417756
479874
453144
458420
499860
559216
658445
601667
621343
812418
797353
472438
510889
527175
590079
600864
527232
814911
508950
522666
493117
549817
673143
704218
624905
626066
644268
602933
641414
805945
788994
787075
518201
511536
518589
446148
463773
524560
522604
400233
815063
466930
533831
552270
810933
791048
437598
402141
522441
566761
581882
593534
514768
456518
536903
501179
552984
421151
596851
454709
521446
453313
]
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 (562951 , 714743 , 370875 , 408969 , 415554 , 417756 , 479874 , 453144 , 458420 , 499860 , 559216 , 658445 , 601667 , 621343 , 812418 , 797353 , 472438 , 510889 , 527175 , 590079 , 600864 , 527232 , 814911 , 508950 , 522666 , 493117 , 549817 , 673143 , 704218 , 624905 , 626066 , 644268 , 602933 , 641414 , 805945 , 788994 , 787075 , 518201 , 511536 , 518589 , 446148 , 463773 , 524560 , 522604 , 400233 , 815063 , 466930 , 533831 , 552270 , 810933 , 791048 , 437598 , 402141 , 522441 , 566761 , 581882 , 593534 , 514768 , 456518 , 536903 , 501179 , 552984 , 421151 , 596851 , 454709 , 521446 , 453313 );
Copy
3.92 ms (2.99%)
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
370875
400233
402141
408969
415554
417756
421151
437598
446148
453144
453313
454709
456518
458420
463773
466930
472438
479874
493117
499860
501179
508950
510889
511536
514768
518201
518589
521446
522441
522604
522666
524560
527175
527232
533831
536903
549817
552270
552984
559216
562951
566761
581882
590079
593534
596851
600864
601667
602933
621343
624905
626066
641414
644268
658445
673143
704218
714743
787075
788994
791048
797353
805945
810933
812418
814911
815063
]
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 (370875 , 400233 , 402141 , 408969 , 415554 , 417756 , 421151 , 437598 , 446148 , 453144 , 453313 , 454709 , 456518 , 458420 , 463773 , 466930 , 472438 , 479874 , 493117 , 499860 , 501179 , 508950 , 510889 , 511536 , 514768 , 518201 , 518589 , 521446 , 522441 , 522604 , 522666 , 524560 , 527175 , 527232 , 533831 , 536903 , 549817 , 552270 , 552984 , 559216 , 562951 , 566761 , 581882 , 590079 , 593534 , 596851 , 600864 , 601667 , 602933 , 621343 , 624905 , 626066 , 641414 , 644268 , 658445 , 673143 , 704218 , 714743 , 787075 , 788994 , 791048 , 797353 , 805945 , 810933 , 812418 , 814911 , 815063 );
Copy