70.94 ms (48.72%)
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
6698
6699
6804
6958
383531
384745
389527
395549
395587
395848
396020
396204
396628
401133
401134
401334
405987
411560
418596
423731
426993
428631
435406
439800
444784
445890
447348
448325
453336
454566
483373
484069
486773
486841
508876
510612
512867
524794
557517
576047
598042
598082
599882
600146
601975
620639
621387
624682
633533
637008
652911
666525
709192
724722
729917
733170
735949
739868
746722
756383
760931
776281
790069
800376
816112
817139
817156
]
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 (6698 , 6699 , 6804 , 6958 , 383531 , 384745 , 389527 , 395549 , 395587 , 395848 , 396020 , 396204 , 396628 , 401133 , 401134 , 401334 , 405987 , 411560 , 418596 , 423731 , 426993 , 428631 , 435406 , 439800 , 444784 , 445890 , 447348 , 448325 , 453336 , 454566 , 483373 , 484069 , 486773 , 486841 , 508876 , 510612 , 512867 , 524794 , 557517 , 576047 , 598042 , 598082 , 599882 , 600146 , 601975 , 620639 , 621387 , 624682 , 633533 , 637008 , 652911 , 666525 , 709192 , 724722 , 729917 , 733170 , 735949 , 739868 , 746722 , 756383 , 760931 , 776281 , 790069 , 800376 , 816112 , 817139 , 817156 );
Copy
9.48 ms (6.51%)
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
601975
652911
790069
486841
816112
733170
746722
445890
724722
729917
389527
620639
817139
760931
6698
600146
6804
776281
6958
709192
739868
395587
405987
800376
624682
395848
817156
735949
756383
396204
508876
435406
6699
401334
401133
384745
401134
395549
411560
454566
486773
576047
447348
383531
396628
524794
599882
633533
510612
448325
512867
483373
428631
426993
557517
439800
453336
598042
418596
637008
598082
396020
484069
423731
621387
666525
444784
]
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 (601975 , 652911 , 790069 , 486841 , 816112 , 733170 , 746722 , 445890 , 724722 , 729917 , 389527 , 620639 , 817139 , 760931 , 6698 , 600146 , 6804 , 776281 , 6958 , 709192 , 739868 , 395587 , 405987 , 800376 , 624682 , 395848 , 817156 , 735949 , 756383 , 396204 , 508876 , 435406 , 6699 , 401334 , 401133 , 384745 , 401134 , 395549 , 411560 , 454566 , 486773 , 576047 , 447348 , 383531 , 396628 , 524794 , 599882 , 633533 , 510612 , 448325 , 512867 , 483373 , 428631 , 426993 , 557517 , 439800 , 453336 , 598042 , 418596 , 637008 , 598082 , 396020 , 484069 , 423731 , 621387 , 666525 , 444784 );
Copy
2.38 ms (1.63%)
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
6698
6699
6804
6958
383531
384745
389527
395549
395587
395848
396020
396204
396628
401133
401134
401334
405987
411560
418596
423731
426993
428631
435406
439800
444784
445890
447348
448325
453336
454566
483373
484069
486773
486841
508876
510612
512867
524794
557517
576047
598042
598082
599882
600146
601975
620639
621387
624682
633533
637008
652911
666525
709192
724722
729917
733170
735949
739868
746722
756383
760931
776281
790069
800376
816112
817139
817156
]
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 (6698 , 6699 , 6804 , 6958 , 383531 , 384745 , 389527 , 395549 , 395587 , 395848 , 396020 , 396204 , 396628 , 401133 , 401134 , 401334 , 405987 , 411560 , 418596 , 423731 , 426993 , 428631 , 435406 , 439800 , 444784 , 445890 , 447348 , 448325 , 453336 , 454566 , 483373 , 484069 , 486773 , 486841 , 508876 , 510612 , 512867 , 524794 , 557517 , 576047 , 598042 , 598082 , 599882 , 600146 , 601975 , 620639 , 621387 , 624682 , 633533 , 637008 , 652911 , 666525 , 709192 , 724722 , 729917 , 733170 , 735949 , 739868 , 746722 , 756383 , 760931 , 776281 , 790069 , 800376 , 816112 , 817139 , 817156 );
Copy