113.10 ms (51.32%)
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
16897
154133
382158
392848
394590
410210
414103
414114
416634
427232
439103
450323
451044
459170
463688
465148
467939
477761
479845
500338
505138
505139
508885
526291
536378
553732
561192
564518
576533
588436
589836
592377
598141
602109
604667
624298
624742
650598
655242
656804
656812
658774
666855
700685
716550
738625
745087
748521
748653
751692
752648
752682
752755
758803
765617
768246
770262
770387
785606
787438
788524
790483
795377
805366
814418
814445
814459
814523
814965
826623
]
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 (16897 , 154133 , 382158 , 392848 , 394590 , 410210 , 414103 , 414114 , 416634 , 427232 , 439103 , 450323 , 451044 , 459170 , 463688 , 465148 , 467939 , 477761 , 479845 , 500338 , 505138 , 505139 , 508885 , 526291 , 536378 , 553732 , 561192 , 564518 , 576533 , 588436 , 589836 , 592377 , 598141 , 602109 , 604667 , 624298 , 624742 , 650598 , 655242 , 656804 , 656812 , 658774 , 666855 , 700685 , 716550 , 738625 , 745087 , 748521 , 748653 , 751692 , 752648 , 752682 , 752755 , 758803 , 765617 , 768246 , 770262 , 770387 , 785606 , 787438 , 788524 , 790483 , 795377 , 805366 , 814418 , 814445 , 814459 , 814523 , 814965 , 826623 );
Copy
12.18 ms (5.53%)
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
589836
656812
382158
666855
576533
752755
658774
748653
394590
392848
564518
656804
602109
745087
655242
752648
553732
154133
770262
500338
826623
814418
814459
788524
751692
765617
477761
16897
588436
439103
414103
598141
459170
770387
465148
785606
416634
505139
805366
536378
592377
450323
467939
414114
795377
479845
758803
526291
505138
814445
752682
624298
768246
451044
410210
814965
787438
814523
604667
790483
650598
716550
748521
738625
700685
463688
427232
624742
508885
561192
]
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 (589836 , 656812 , 382158 , 666855 , 576533 , 752755 , 658774 , 748653 , 394590 , 392848 , 564518 , 656804 , 602109 , 745087 , 655242 , 752648 , 553732 , 154133 , 770262 , 500338 , 826623 , 814418 , 814459 , 788524 , 751692 , 765617 , 477761 , 16897 , 588436 , 439103 , 414103 , 598141 , 459170 , 770387 , 465148 , 785606 , 416634 , 505139 , 805366 , 536378 , 592377 , 450323 , 467939 , 414114 , 795377 , 479845 , 758803 , 526291 , 505138 , 814445 , 752682 , 624298 , 768246 , 451044 , 410210 , 814965 , 787438 , 814523 , 604667 , 790483 , 650598 , 716550 , 748521 , 738625 , 700685 , 463688 , 427232 , 624742 , 508885 , 561192 );
Copy
3.01 ms (1.37%)
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
16897
154133
382158
392848
394590
410210
414103
414114
416634
427232
439103
450323
451044
459170
463688
465148
467939
477761
479845
500338
505138
505139
508885
526291
536378
553732
561192
564518
576533
588436
589836
592377
598141
602109
604667
624298
624742
650598
655242
656804
656812
658774
666855
700685
716550
738625
745087
748521
748653
751692
752648
752682
752755
758803
765617
768246
770262
770387
785606
787438
788524
790483
795377
805366
814418
814445
814459
814523
814965
826623
]
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 (16897 , 154133 , 382158 , 392848 , 394590 , 410210 , 414103 , 414114 , 416634 , 427232 , 439103 , 450323 , 451044 , 459170 , 463688 , 465148 , 467939 , 477761 , 479845 , 500338 , 505138 , 505139 , 508885 , 526291 , 536378 , 553732 , 561192 , 564518 , 576533 , 588436 , 589836 , 592377 , 598141 , 602109 , 604667 , 624298 , 624742 , 650598 , 655242 , 656804 , 656812 , 658774 , 666855 , 700685 , 716550 , 738625 , 745087 , 748521 , 748653 , 751692 , 752648 , 752682 , 752755 , 758803 , 765617 , 768246 , 770262 , 770387 , 785606 , 787438 , 788524 , 790483 , 795377 , 805366 , 814418 , 814445 , 814459 , 814523 , 814965 , 826623 );
Copy