108.43 ms (76.75%)
|
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
420635
421839
421871
421907
424364
424480
436178
439819
441004
441024
448031
452168
462535
470290
470939
472328
473923
474663
475891
476797
482492
483660
484688
484694
484727
490261
497921
500578
504908
508860
510108
513604
516598
518795
519727
521784
524388
535808
546063
546774
559712
560191
573389
576310
579647
586575
589207
590667
590866
593269
595369
595835
596423
596466
597240
598711
599921
603854
605445
607919
608048
609140
609259
609279
613221
614273
614921
615818
618889
619539
620674
620686
621965
622351
622832
624930
625001
625359
640690
648685
651929
651937
651938
652931
653471
659328
660306
661272
730233
735778
745493
751565
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?
)
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 (420635, 421839, 421871, 421907, 424364, 424480, 436178, 439819, 441004, 441024, 448031, 452168, 462535, 470290, 470939, 472328, 473923, 474663, 475891, 476797, 482492, 483660, 484688, 484694, 484727, 490261, 497921, 500578, 504908, 508860, 510108, 513604, 516598, 518795, 519727, 521784, 524388, 535808, 546063, 546774, 559712, 560191, 573389, 576310, 579647, 586575, 589207, 590667, 590866, 593269, 595369, 595835, 596423, 596466, 597240, 598711, 599921, 603854, 605445, 607919, 608048, 609140, 609259, 609279, 613221, 614273, 614921, 615818, 618889, 619539, 620674, 620686, 621965, 622351, 622832, 624930, 625001, 625359, 640690, 648685, 651929, 651937, 651938, 652931, 653471, 659328, 660306, 661272, 730233, 735778, 745493, 751565);
|
21.76 ms (15.40%)
|
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
595835
593269
472328
579647
661272
504908
524388
518795
448031
653471
559712
745493
441004
436178
651929
648685
613221
516598
510108
609259
609140
470290
546063
660306
621965
651938
652931
599921
619539
595369
659328
625359
622832
421839
535808
421907
424480
508860
620686
421871
624930
484727
546774
476797
470939
424364
482492
484694
490261
596423
590667
730233
483660
452168
500578
441024
521784
420635
474663
560191
751565
608048
497921
620674
735778
615818
484688
605445
603854
651937
439819
596466
576310
590866
614273
607919
586575
519727
473923
462535
589207
614921
622351
475891
597240
513604
625001
618889
609279
598711
573389
640690
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?
)
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 (595835, 593269, 472328, 579647, 661272, 504908, 524388, 518795, 448031, 653471, 559712, 745493, 441004, 436178, 651929, 648685, 613221, 516598, 510108, 609259, 609140, 470290, 546063, 660306, 621965, 651938, 652931, 599921, 619539, 595369, 659328, 625359, 622832, 421839, 535808, 421907, 424480, 508860, 620686, 421871, 624930, 484727, 546774, 476797, 470939, 424364, 482492, 484694, 490261, 596423, 590667, 730233, 483660, 452168, 500578, 441024, 521784, 420635, 474663, 560191, 751565, 608048, 497921, 620674, 735778, 615818, 484688, 605445, 603854, 651937, 439819, 596466, 576310, 590866, 614273, 607919, 586575, 519727, 473923, 462535, 589207, 614921, 622351, 475891, 597240, 513604, 625001, 618889, 609279, 598711, 573389, 640690);
|
2.57 ms (1.82%)
|
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
420635
421839
421871
421907
424364
424480
436178
439819
441004
441024
448031
452168
462535
470290
470939
472328
473923
474663
475891
476797
482492
483660
484688
484694
484727
490261
497921
500578
504908
508860
510108
513604
516598
518795
519727
521784
524388
535808
546063
546774
559712
560191
573389
576310
579647
586575
589207
590667
590866
593269
595369
595835
596423
596466
597240
598711
599921
603854
605445
607919
608048
609140
609259
609279
613221
614273
614921
615818
618889
619539
620674
620686
621965
622351
622832
624930
625001
625359
640690
648685
651929
651937
651938
652931
653471
659328
660306
661272
730233
735778
745493
751565
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?
)
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 (420635, 421839, 421871, 421907, 424364, 424480, 436178, 439819, 441004, 441024, 448031, 452168, 462535, 470290, 470939, 472328, 473923, 474663, 475891, 476797, 482492, 483660, 484688, 484694, 484727, 490261, 497921, 500578, 504908, 508860, 510108, 513604, 516598, 518795, 519727, 521784, 524388, 535808, 546063, 546774, 559712, 560191, 573389, 576310, 579647, 586575, 589207, 590667, 590866, 593269, 595369, 595835, 596423, 596466, 597240, 598711, 599921, 603854, 605445, 607919, 608048, 609140, 609259, 609279, 613221, 614273, 614921, 615818, 618889, 619539, 620674, 620686, 621965, 622351, 622832, 624930, 625001, 625359, 640690, 648685, 651929, 651937, 651938, 652931, 653471, 659328, 660306, 661272, 730233, 735778, 745493, 751565);
|