95.34 ms (80.71%)
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
280656
412122
447705
486416
522872
526893
527468
529223
529877
529895
532752
534663
534972
541073
555624
559185
559187
559197
563532
578043
581349
584321
589122
606144
606474
611905
633806
637094
640783
644278
644306
644925
652163
655298
658173
671759
672112
673938
679309
712010
723527
724354
727087
728096
733843
733879
733886
733887
733908
745451
750512
756068
760232
768522
774009
799563
800272
820632
821205
821607
821665
822715
827503
827861
]
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 (280656 , 412122 , 447705 , 486416 , 522872 , 526893 , 527468 , 529223 , 529877 , 529895 , 532752 , 534663 , 534972 , 541073 , 555624 , 559185 , 559187 , 559197 , 563532 , 578043 , 581349 , 584321 , 589122 , 606144 , 606474 , 611905 , 633806 , 637094 , 640783 , 644278 , 644306 , 644925 , 652163 , 655298 , 658173 , 671759 , 672112 , 673938 , 679309 , 712010 , 723527 , 724354 , 727087 , 728096 , 733843 , 733879 , 733886 , 733887 , 733908 , 745451 , 750512 , 756068 , 760232 , 768522 , 774009 , 799563 , 800272 , 820632 , 821205 , 821607 , 821665 , 822715 , 827503 , 827861 );
Copy
9.40 ms (7.96%)
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
611905
529895
529877
606144
578043
750512
652163
584321
658173
526893
559185
672112
723527
532752
712010
559197
522872
563532
679309
559187
644925
820632
827503
760232
827861
280656
821205
821665
821607
756068
822715
745451
799563
534972
768522
733887
412122
655298
673938
727087
447705
534663
671759
606474
800272
724354
728096
644278
644306
529223
541073
555624
589122
774009
733843
486416
640783
733886
733908
733879
633806
581349
637094
527468
]
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 (611905 , 529895 , 529877 , 606144 , 578043 , 750512 , 652163 , 584321 , 658173 , 526893 , 559185 , 672112 , 723527 , 532752 , 712010 , 559197 , 522872 , 563532 , 679309 , 559187 , 644925 , 820632 , 827503 , 760232 , 827861 , 280656 , 821205 , 821665 , 821607 , 756068 , 822715 , 745451 , 799563 , 534972 , 768522 , 733887 , 412122 , 655298 , 673938 , 727087 , 447705 , 534663 , 671759 , 606474 , 800272 , 724354 , 728096 , 644278 , 644306 , 529223 , 541073 , 555624 , 589122 , 774009 , 733843 , 486416 , 640783 , 733886 , 733908 , 733879 , 633806 , 581349 , 637094 , 527468 );
Copy
2.52 ms (2.13%)
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
280656
412122
447705
486416
522872
526893
527468
529223
529877
529895
532752
534663
534972
541073
555624
559185
559187
559197
563532
578043
581349
584321
589122
606144
606474
611905
633806
637094
640783
644278
644306
644925
652163
655298
658173
671759
672112
673938
679309
712010
723527
724354
727087
728096
733843
733879
733886
733887
733908
745451
750512
756068
760232
768522
774009
799563
800272
820632
821205
821607
821665
822715
827503
827861
]
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 (280656 , 412122 , 447705 , 486416 , 522872 , 526893 , 527468 , 529223 , 529877 , 529895 , 532752 , 534663 , 534972 , 541073 , 555624 , 559185 , 559187 , 559197 , 563532 , 578043 , 581349 , 584321 , 589122 , 606144 , 606474 , 611905 , 633806 , 637094 , 640783 , 644278 , 644306 , 644925 , 652163 , 655298 , 658173 , 671759 , 672112 , 673938 , 679309 , 712010 , 723527 , 724354 , 727087 , 728096 , 733843 , 733879 , 733886 , 733887 , 733908 , 745451 , 750512 , 756068 , 760232 , 768522 , 774009 , 799563 , 800272 , 820632 , 821205 , 821607 , 821665 , 822715 , 827503 , 827861 );
Copy