121.48 ms (75.39%)
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
405804
436074
458523
465549
473505
479219
479854
480298
484299
486400
498043
508283
511920
516015
519834
520138
521453
521687
521843
522403
523995
524492
525648
526218
527273
527465
528788
535338
542187
542467
544472
554272
561480
564456
574353
580139
591056
591235
594231
594958
595437
597550
597575
601137
601834
601917
601924
602916
603765
609880
610613
613488
614080
614853
616738
618334
619539
619746
621091
621259
623026
626448
636248
654109
661253
735850
]
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 (405804 , 436074 , 458523 , 465549 , 473505 , 479219 , 479854 , 480298 , 484299 , 486400 , 498043 , 508283 , 511920 , 516015 , 519834 , 520138 , 521453 , 521687 , 521843 , 522403 , 523995 , 524492 , 525648 , 526218 , 527273 , 527465 , 528788 , 535338 , 542187 , 542467 , 544472 , 554272 , 561480 , 564456 , 574353 , 580139 , 591056 , 591235 , 594231 , 594958 , 595437 , 597550 , 597575 , 601137 , 601834 , 601917 , 601924 , 602916 , 603765 , 609880 , 610613 , 613488 , 614080 , 614853 , 616738 , 618334 , 619539 , 619746 , 621091 , 621259 , 623026 , 626448 , 636248 , 654109 , 661253 , 735850 );
Copy
18.62 ms (11.56%)
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
601917
603765
616738
623026
591056
595437
597550
601834
618334
601924
610613
614853
621091
626448
636248
405804
436074
458523
479219
479854
521687
484299
498043
524492
535338
516015
528788
561480
619539
542467
735850
544472
574353
654109
554272
601137
613488
621259
591235
597575
602916
609880
473505
511920
521453
522403
527465
520138
523995
486400
525648
526218
519834
542187
564456
614080
594958
594231
480298
521843
527273
508283
619746
661253
580139
465549
]
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 (601917 , 603765 , 616738 , 623026 , 591056 , 595437 , 597550 , 601834 , 618334 , 601924 , 610613 , 614853 , 621091 , 626448 , 636248 , 405804 , 436074 , 458523 , 479219 , 479854 , 521687 , 484299 , 498043 , 524492 , 535338 , 516015 , 528788 , 561480 , 619539 , 542467 , 735850 , 544472 , 574353 , 654109 , 554272 , 601137 , 613488 , 621259 , 591235 , 597575 , 602916 , 609880 , 473505 , 511920 , 521453 , 522403 , 527465 , 520138 , 523995 , 486400 , 525648 , 526218 , 519834 , 542187 , 564456 , 614080 , 594958 , 594231 , 480298 , 521843 , 527273 , 508283 , 619746 , 661253 , 580139 , 465549 );
Copy
2.28 ms (1.41%)
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
405804
436074
458523
465549
473505
479219
479854
480298
484299
486400
498043
508283
511920
516015
519834
520138
521453
521687
521843
522403
523995
524492
525648
526218
527273
527465
528788
535338
542187
542467
544472
554272
561480
564456
574353
580139
591056
591235
594231
594958
595437
597550
597575
601137
601834
601917
601924
602916
603765
609880
610613
613488
614080
614853
616738
618334
619539
619746
621091
621259
623026
626448
636248
654109
661253
735850
]
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 (405804 , 436074 , 458523 , 465549 , 473505 , 479219 , 479854 , 480298 , 484299 , 486400 , 498043 , 508283 , 511920 , 516015 , 519834 , 520138 , 521453 , 521687 , 521843 , 522403 , 523995 , 524492 , 525648 , 526218 , 527273 , 527465 , 528788 , 535338 , 542187 , 542467 , 544472 , 554272 , 561480 , 564456 , 574353 , 580139 , 591056 , 591235 , 594231 , 594958 , 595437 , 597550 , 597575 , 601137 , 601834 , 601917 , 601924 , 602916 , 603765 , 609880 , 610613 , 613488 , 614080 , 614853 , 616738 , 618334 , 619539 , 619746 , 621091 , 621259 , 623026 , 626448 , 636248 , 654109 , 661253 , 735850 );
Copy