100.59 ms (77.30%)
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
233006
429810
433566
443080
445740
455957
458089
462050
462294
488520
490087
492939
497992
500503
507182
515396
518357
542084
545588
551532
551553
559201
560368
563027
577209
577210
577213
577437
587860
589721
590364
597152
603544
603651
605616
606783
618591
623909
648939
654246
659541
659650
659751
659858
660910
661244
666103
670090
680787
708476
718885
720115
734388
742662
742663
742678
755118
764650
769559
782640
791235
820574
824703
]
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 (233006 , 429810 , 433566 , 443080 , 445740 , 455957 , 458089 , 462050 , 462294 , 488520 , 490087 , 492939 , 497992 , 500503 , 507182 , 515396 , 518357 , 542084 , 545588 , 551532 , 551553 , 559201 , 560368 , 563027 , 577209 , 577210 , 577213 , 577437 , 587860 , 589721 , 590364 , 597152 , 603544 , 603651 , 605616 , 606783 , 618591 , 623909 , 648939 , 654246 , 659541 , 659650 , 659751 , 659858 , 660910 , 661244 , 666103 , 670090 , 680787 , 708476 , 718885 , 720115 , 734388 , 742662 , 742663 , 742678 , 755118 , 764650 , 769559 , 782640 , 791235 , 820574 , 824703 );
Copy
9.16 ms (7.04%)
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
429810
734388
659751
577213
742662
659541
660910
433566
462050
659650
782640
542084
590364
603651
666103
769559
233006
497992
661244
670090
623909
742678
764650
488520
500503
551532
507182
458089
545588
563027
659858
708476
606783
462294
820574
577210
718885
455957
577209
559201
654246
605616
742663
492939
824703
490087
755118
791235
720115
443080
518357
560368
577437
587860
445740
648939
680787
603544
618591
589721
597152
551553
515396
]
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 (429810 , 734388 , 659751 , 577213 , 742662 , 659541 , 660910 , 433566 , 462050 , 659650 , 782640 , 542084 , 590364 , 603651 , 666103 , 769559 , 233006 , 497992 , 661244 , 670090 , 623909 , 742678 , 764650 , 488520 , 500503 , 551532 , 507182 , 458089 , 545588 , 563027 , 659858 , 708476 , 606783 , 462294 , 820574 , 577210 , 718885 , 455957 , 577209 , 559201 , 654246 , 605616 , 742663 , 492939 , 824703 , 490087 , 755118 , 791235 , 720115 , 443080 , 518357 , 560368 , 577437 , 587860 , 445740 , 648939 , 680787 , 603544 , 618591 , 589721 , 597152 , 551553 , 515396 );
Copy
2.70 ms (2.07%)
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
233006
429810
433566
443080
445740
455957
458089
462050
462294
488520
490087
492939
497992
500503
507182
515396
518357
542084
545588
551532
551553
559201
560368
563027
577209
577210
577213
577437
587860
589721
590364
597152
603544
603651
605616
606783
618591
623909
648939
654246
659541
659650
659751
659858
660910
661244
666103
670090
680787
708476
718885
720115
734388
742662
742663
742678
755118
764650
769559
782640
791235
820574
824703
]
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 (233006 , 429810 , 433566 , 443080 , 445740 , 455957 , 458089 , 462050 , 462294 , 488520 , 490087 , 492939 , 497992 , 500503 , 507182 , 515396 , 518357 , 542084 , 545588 , 551532 , 551553 , 559201 , 560368 , 563027 , 577209 , 577210 , 577213 , 577437 , 587860 , 589721 , 590364 , 597152 , 603544 , 603651 , 605616 , 606783 , 618591 , 623909 , 648939 , 654246 , 659541 , 659650 , 659751 , 659858 , 660910 , 661244 , 666103 , 670090 , 680787 , 708476 , 718885 , 720115 , 734388 , 742662 , 742663 , 742678 , 755118 , 764650 , 769559 , 782640 , 791235 , 820574 , 824703 );
Copy