83.87 ms (68.35%)
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
463338
475992
483790
483795
483796
483800
493034
493046
496972
510244
529319
532544
542884
552737
560859
561458
563656
578228
578295
582931
584079
584167
584535
584610
584627
590797
594570
594760
595236
596555
606531
610838
612233
621469
622277
638894
644787
645526
645602
645665
645669
661997
694373
710074
728326
737927
738684
738737
738749
738756
738757
738759
738762
751842
758584
758590
780709
785711
785714
789011
790045
792273
812083
812837
]
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 (463338 , 475992 , 483790 , 483795 , 483796 , 483800 , 493034 , 493046 , 496972 , 510244 , 529319 , 532544 , 542884 , 552737 , 560859 , 561458 , 563656 , 578228 , 578295 , 582931 , 584079 , 584167 , 584535 , 584610 , 584627 , 590797 , 594570 , 594760 , 595236 , 596555 , 606531 , 610838 , 612233 , 621469 , 622277 , 638894 , 644787 , 645526 , 645602 , 645665 , 645669 , 661997 , 694373 , 710074 , 728326 , 737927 , 738684 , 738737 , 738749 , 738756 , 738757 , 738759 , 738762 , 751842 , 758584 , 758590 , 780709 , 785711 , 785714 , 789011 , 790045 , 792273 , 812083 , 812837 );
Copy
9.57 ms (7.80%)
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
645665
710074
645526
590797
552737
792273
728326
738757
606531
789011
785714
812837
812083
738684
738737
738759
584079
578228
582931
645602
621469
644787
612233
463338
694373
737927
751842
483800
532544
738749
790045
661997
483790
493034
780709
738762
483796
622277
594570
560859
785711
738756
758584
638894
496972
584535
645669
594760
610838
595236
758590
529319
563656
542884
578295
483795
584610
493046
475992
584167
510244
584627
596555
561458
]
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 (645665 , 710074 , 645526 , 590797 , 552737 , 792273 , 728326 , 738757 , 606531 , 789011 , 785714 , 812837 , 812083 , 738684 , 738737 , 738759 , 584079 , 578228 , 582931 , 645602 , 621469 , 644787 , 612233 , 463338 , 694373 , 737927 , 751842 , 483800 , 532544 , 738749 , 790045 , 661997 , 483790 , 493034 , 780709 , 738762 , 483796 , 622277 , 594570 , 560859 , 785711 , 738756 , 758584 , 638894 , 496972 , 584535 , 645669 , 594760 , 610838 , 595236 , 758590 , 529319 , 563656 , 542884 , 578295 , 483795 , 584610 , 493046 , 475992 , 584167 , 510244 , 584627 , 596555 , 561458 );
Copy
2.89 ms (2.35%)
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
463338
475992
483790
483795
483796
483800
493034
493046
496972
510244
529319
532544
542884
552737
560859
561458
563656
578228
578295
582931
584079
584167
584535
584610
584627
590797
594570
594760
595236
596555
606531
610838
612233
621469
622277
638894
644787
645526
645602
645665
645669
661997
694373
710074
728326
737927
738684
738737
738749
738756
738757
738759
738762
751842
758584
758590
780709
785711
785714
789011
790045
792273
812083
812837
]
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 (463338 , 475992 , 483790 , 483795 , 483796 , 483800 , 493034 , 493046 , 496972 , 510244 , 529319 , 532544 , 542884 , 552737 , 560859 , 561458 , 563656 , 578228 , 578295 , 582931 , 584079 , 584167 , 584535 , 584610 , 584627 , 590797 , 594570 , 594760 , 595236 , 596555 , 606531 , 610838 , 612233 , 621469 , 622277 , 638894 , 644787 , 645526 , 645602 , 645665 , 645669 , 661997 , 694373 , 710074 , 728326 , 737927 , 738684 , 738737 , 738749 , 738756 , 738757 , 738759 , 738762 , 751842 , 758584 , 758590 , 780709 , 785711 , 785714 , 789011 , 790045 , 792273 , 812083 , 812837 );
Copy