88.74 ms (27.36%)
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
417833
432822
439565
455515
482217
482888
490692
492401
492438
494312
506441
507083
507865
509986
509995
512166
516711
516714
516727
523245
523253
527199
527405
528881
535252
537595
541188
544461
544788
545337
547575
551121
564177
584174
584430
584434
586302
586594
595838
603053
605213
605707
607027
614580
618746
623306
624456
630553
639060
639334
643370
650612
667748
671679
676571
726754
732782
750072
751715
760694
767995
771456
784112
798610
799435
806050
809466
809502
]
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 (417833 , 432822 , 439565 , 455515 , 482217 , 482888 , 490692 , 492401 , 492438 , 494312 , 506441 , 507083 , 507865 , 509986 , 509995 , 512166 , 516711 , 516714 , 516727 , 523245 , 523253 , 527199 , 527405 , 528881 , 535252 , 537595 , 541188 , 544461 , 544788 , 545337 , 547575 , 551121 , 564177 , 584174 , 584430 , 584434 , 586302 , 586594 , 595838 , 603053 , 605213 , 605707 , 607027 , 614580 , 618746 , 623306 , 624456 , 630553 , 639060 , 639334 , 643370 , 650612 , 667748 , 671679 , 676571 , 726754 , 732782 , 750072 , 751715 , 760694 , 767995 , 771456 , 784112 , 798610 , 799435 , 806050 , 809466 , 809502 );
Copy
10.08 ms (3.11%)
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
506441
482217
490692
507083
528881
584430
671679
676571
545337
595838
605213
605707
799435
806050
732782
750072
751715
767995
726754
771456
492438
439565
586594
537595
623306
630553
523245
541188
584174
551121
784112
535252
584434
547575
618746
624456
586302
809502
760694
516714
527405
509986
509995
432822
494312
482888
507865
564177
650612
798610
512166
667748
492401
643370
607027
639334
639060
516711
809466
455515
417833
544788
544461
527199
603053
614580
516727
523253
]
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 (506441 , 482217 , 490692 , 507083 , 528881 , 584430 , 671679 , 676571 , 545337 , 595838 , 605213 , 605707 , 799435 , 806050 , 732782 , 750072 , 751715 , 767995 , 726754 , 771456 , 492438 , 439565 , 586594 , 537595 , 623306 , 630553 , 523245 , 541188 , 584174 , 551121 , 784112 , 535252 , 584434 , 547575 , 618746 , 624456 , 586302 , 809502 , 760694 , 516714 , 527405 , 509986 , 509995 , 432822 , 494312 , 482888 , 507865 , 564177 , 650612 , 798610 , 512166 , 667748 , 492401 , 643370 , 607027 , 639334 , 639060 , 516711 , 809466 , 455515 , 417833 , 544788 , 544461 , 527199 , 603053 , 614580 , 516727 , 523253 );
Copy
2.26 ms (0.70%)
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
417833
432822
439565
455515
482217
482888
490692
492401
492438
494312
506441
507083
507865
509986
509995
512166
516711
516714
516727
523245
523253
527199
527405
528881
535252
537595
541188
544461
544788
545337
547575
551121
564177
584174
584430
584434
586302
586594
595838
603053
605213
605707
607027
614580
618746
623306
624456
630553
639060
639334
643370
650612
667748
671679
676571
726754
732782
750072
751715
760694
767995
771456
784112
798610
799435
806050
809466
809502
]
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 (417833 , 432822 , 439565 , 455515 , 482217 , 482888 , 490692 , 492401 , 492438 , 494312 , 506441 , 507083 , 507865 , 509986 , 509995 , 512166 , 516711 , 516714 , 516727 , 523245 , 523253 , 527199 , 527405 , 528881 , 535252 , 537595 , 541188 , 544461 , 544788 , 545337 , 547575 , 551121 , 564177 , 584174 , 584430 , 584434 , 586302 , 586594 , 595838 , 603053 , 605213 , 605707 , 607027 , 614580 , 618746 , 623306 , 624456 , 630553 , 639060 , 639334 , 643370 , 650612 , 667748 , 671679 , 676571 , 726754 , 732782 , 750072 , 751715 , 760694 , 767995 , 771456 , 784112 , 798610 , 799435 , 806050 , 809466 , 809502 );
Copy