97.56 ms (79.10%)
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
416887
428034
441882
450534
450540
450881
463478
471965
472454
478374
482113
488475
491750
495418
500456
505842
507702
507749
508239
508942
508950
509207
515920
521630
522392
522436
523181
523890
535414
550259
553652
554998
555784
555856
557102
563025
563076
570149
574422
579126
588610
605111
621663
621729
626321
637309
650228
659182
693269
697997
721552
723946
724916
725521
734601
743620
758695
759107
766567
771305
780023
791612
794433
807293
813265
]
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 (416887 , 428034 , 441882 , 450534 , 450540 , 450881 , 463478 , 471965 , 472454 , 478374 , 482113 , 488475 , 491750 , 495418 , 500456 , 505842 , 507702 , 507749 , 508239 , 508942 , 508950 , 509207 , 515920 , 521630 , 522392 , 522436 , 523181 , 523890 , 535414 , 550259 , 553652 , 554998 , 555784 , 555856 , 557102 , 563025 , 563076 , 570149 , 574422 , 579126 , 588610 , 605111 , 621663 , 621729 , 626321 , 637309 , 650228 , 659182 , 693269 , 697997 , 721552 , 723946 , 724916 , 725521 , 734601 , 743620 , 758695 , 759107 , 766567 , 771305 , 780023 , 791612 , 794433 , 807293 , 813265 );
Copy
9.40 ms (7.63%)
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
523890
508950
482113
491750
563025
557102
555856
553652
428034
508239
535414
570149
650228
621729
478374
450534
507749
509207
743620
523181
574422
563076
621663
508942
659182
416887
697997
637309
734601
605111
555784
550259
554998
521630
725521
721552
791612
758695
794433
488475
723946
724916
771305
780023
441882
759107
579126
766567
522436
500456
515920
588610
807293
626321
450881
471965
450540
505842
507702
813265
472454
495418
522392
693269
463478
]
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 (523890 , 508950 , 482113 , 491750 , 563025 , 557102 , 555856 , 553652 , 428034 , 508239 , 535414 , 570149 , 650228 , 621729 , 478374 , 450534 , 507749 , 509207 , 743620 , 523181 , 574422 , 563076 , 621663 , 508942 , 659182 , 416887 , 697997 , 637309 , 734601 , 605111 , 555784 , 550259 , 554998 , 521630 , 725521 , 721552 , 791612 , 758695 , 794433 , 488475 , 723946 , 724916 , 771305 , 780023 , 441882 , 759107 , 579126 , 766567 , 522436 , 500456 , 515920 , 588610 , 807293 , 626321 , 450881 , 471965 , 450540 , 505842 , 507702 , 813265 , 472454 , 495418 , 522392 , 693269 , 463478 );
Copy
3.08 ms (2.50%)
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
416887
428034
441882
450534
450540
450881
463478
471965
472454
478374
482113
488475
491750
495418
500456
505842
507702
507749
508239
508942
508950
509207
515920
521630
522392
522436
523181
523890
535414
550259
553652
554998
555784
555856
557102
563025
563076
570149
574422
579126
588610
605111
621663
621729
626321
637309
650228
659182
693269
697997
721552
723946
724916
725521
734601
743620
758695
759107
766567
771305
780023
791612
794433
807293
813265
]
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 (416887 , 428034 , 441882 , 450534 , 450540 , 450881 , 463478 , 471965 , 472454 , 478374 , 482113 , 488475 , 491750 , 495418 , 500456 , 505842 , 507702 , 507749 , 508239 , 508942 , 508950 , 509207 , 515920 , 521630 , 522392 , 522436 , 523181 , 523890 , 535414 , 550259 , 553652 , 554998 , 555784 , 555856 , 557102 , 563025 , 563076 , 570149 , 574422 , 579126 , 588610 , 605111 , 621663 , 621729 , 626321 , 637309 , 650228 , 659182 , 693269 , 697997 , 721552 , 723946 , 724916 , 725521 , 734601 , 743620 , 758695 , 759107 , 766567 , 771305 , 780023 , 791612 , 794433 , 807293 , 813265 );
Copy