77.71 ms (55.85%)
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
541863
543652
552938
582323
599911
599914
600008
600017
600185
600268
600352
617414
619204
628332
630552
631194
632585
632595
632663
632694
634138
634218
634774
635215
637036
637413
637442
639334
639719
639735
641700
642002
642018
643122
645952
647875
647994
651079
651082
666549
666579
666853
666892
666906
668518
668534
668555
674983
676088
676428
676623
676632
677674
678053
678493
775860
775958
788789
801968
820759
820772
]
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 (541863 , 543652 , 552938 , 582323 , 599911 , 599914 , 600008 , 600017 , 600185 , 600268 , 600352 , 617414 , 619204 , 628332 , 630552 , 631194 , 632585 , 632595 , 632663 , 632694 , 634138 , 634218 , 634774 , 635215 , 637036 , 637413 , 637442 , 639334 , 639719 , 639735 , 641700 , 642002 , 642018 , 643122 , 645952 , 647875 , 647994 , 651079 , 651082 , 666549 , 666579 , 666853 , 666892 , 666906 , 668518 , 668534 , 668555 , 674983 , 676088 , 676428 , 676623 , 676632 , 677674 , 678053 , 678493 , 775860 , 775958 , 788789 , 801968 , 820759 , 820772 );
Copy
9.99 ms (7.18%)
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
666579
647875
541863
619204
634138
668518
599911
637442
632663
645952
678493
666853
668534
676632
600017
820772
801968
788789
678053
676088
668555
600008
617414
775860
666906
674983
775958
666549
639334
634218
651082
582323
677674
600185
642002
599914
600268
647994
666892
641700
631194
637413
543652
634774
637036
635215
552938
676428
628332
639719
630552
639735
643122
651079
600352
632694
676623
642018
820759
632595
632585
]
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 (666579 , 647875 , 541863 , 619204 , 634138 , 668518 , 599911 , 637442 , 632663 , 645952 , 678493 , 666853 , 668534 , 676632 , 600017 , 820772 , 801968 , 788789 , 678053 , 676088 , 668555 , 600008 , 617414 , 775860 , 666906 , 674983 , 775958 , 666549 , 639334 , 634218 , 651082 , 582323 , 677674 , 600185 , 642002 , 599914 , 600268 , 647994 , 666892 , 641700 , 631194 , 637413 , 543652 , 634774 , 637036 , 635215 , 552938 , 676428 , 628332 , 639719 , 630552 , 639735 , 643122 , 651079 , 600352 , 632694 , 676623 , 642018 , 820759 , 632595 , 632585 );
Copy
3.18 ms (2.28%)
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
541863
543652
552938
582323
599911
599914
600008
600017
600185
600268
600352
617414
619204
628332
630552
631194
632585
632595
632663
632694
634138
634218
634774
635215
637036
637413
637442
639334
639719
639735
641700
642002
642018
643122
645952
647875
647994
651079
651082
666549
666579
666853
666892
666906
668518
668534
668555
674983
676088
676428
676623
676632
677674
678053
678493
775860
775958
788789
801968
820759
820772
]
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 (541863 , 543652 , 552938 , 582323 , 599911 , 599914 , 600008 , 600017 , 600185 , 600268 , 600352 , 617414 , 619204 , 628332 , 630552 , 631194 , 632585 , 632595 , 632663 , 632694 , 634138 , 634218 , 634774 , 635215 , 637036 , 637413 , 637442 , 639334 , 639719 , 639735 , 641700 , 642002 , 642018 , 643122 , 645952 , 647875 , 647994 , 651079 , 651082 , 666549 , 666579 , 666853 , 666892 , 666906 , 668518 , 668534 , 668555 , 674983 , 676088 , 676428 , 676623 , 676632 , 677674 , 678053 , 678493 , 775860 , 775958 , 788789 , 801968 , 820759 , 820772 );
Copy