133.00 ms (86.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
402101
409846
425356
427250
431112
448236
452594
458806
460149
462699
463621
470162
470526
472586
474170
478220
479989
480069
480318
480331
482973
484037
485265
489653
492749
493954
495604
497936
500816
507937
508868
515741
519131
519424
519515
521520
525186
526789
527164
527388
527453
528877
530303
543693
543794
552247
554853
556722
564694
577612
577679
578531
578765
584382
586479
590719
591330
594037
596895
612843
614420
615664
615823
621655
621767
627846
629819
635627
653766
688656
693361
696499
707703
730975
732735
753752
]
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 (402101, 409846, 425356, 427250, 431112, 448236, 452594, 458806, 460149, 462699, 463621, 470162, 470526, 472586, 474170, 478220, 479989, 480069, 480318, 480331, 482973, 484037, 485265, 489653, 492749, 493954, 495604, 497936, 500816, 507937, 508868, 515741, 519131, 519424, 519515, 521520, 525186, 526789, 527164, 527388, 527453, 528877, 530303, 543693, 543794, 552247, 554853, 556722, 564694, 577612, 577679, 578531, 578765, 584382, 586479, 590719, 591330, 594037, 596895, 612843, 614420, 615664, 615823, 621655, 621767, 627846, 629819, 635627, 653766, 688656, 693361, 696499, 707703, 730975, 732735, 753752);
|
11.12 ms (7.25%)
|
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
730975
627846
507937
460149
519131
508868
530303
482973
552247
653766
693361
556722
577679
578765
615664
596895
753752
409846
448236
462699
463621
427250
480318
480331
478220
515741
484037
500816
527388
470526
519515
564694
402101
458806
489653
527453
519424
526789
472586
554853
591330
594037
614420
615823
492749
525186
493954
528877
479989
543794
543693
584382
577612
586479
629819
732735
474170
521520
497936
495604
578531
707703
621767
635627
590719
612843
470162
452594
527164
425356
480069
688656
431112
696499
621655
485265
]
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 (730975, 627846, 507937, 460149, 519131, 508868, 530303, 482973, 552247, 653766, 693361, 556722, 577679, 578765, 615664, 596895, 753752, 409846, 448236, 462699, 463621, 427250, 480318, 480331, 478220, 515741, 484037, 500816, 527388, 470526, 519515, 564694, 402101, 458806, 489653, 527453, 519424, 526789, 472586, 554853, 591330, 594037, 614420, 615823, 492749, 525186, 493954, 528877, 479989, 543794, 543693, 584382, 577612, 586479, 629819, 732735, 474170, 521520, 497936, 495604, 578531, 707703, 621767, 635627, 590719, 612843, 470162, 452594, 527164, 425356, 480069, 688656, 431112, 696499, 621655, 485265);
|
2.57 ms (1.68%)
|
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
402101
409846
425356
427250
431112
448236
452594
458806
460149
462699
463621
470162
470526
472586
474170
478220
479989
480069
480318
480331
482973
484037
485265
489653
492749
493954
495604
497936
500816
507937
508868
515741
519131
519424
519515
521520
525186
526789
527164
527388
527453
528877
530303
543693
543794
552247
554853
556722
564694
577612
577679
578531
578765
584382
586479
590719
591330
594037
596895
612843
614420
615664
615823
621655
621767
627846
629819
635627
653766
688656
693361
696499
707703
730975
732735
753752
]
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 (402101, 409846, 425356, 427250, 431112, 448236, 452594, 458806, 460149, 462699, 463621, 470162, 470526, 472586, 474170, 478220, 479989, 480069, 480318, 480331, 482973, 484037, 485265, 489653, 492749, 493954, 495604, 497936, 500816, 507937, 508868, 515741, 519131, 519424, 519515, 521520, 525186, 526789, 527164, 527388, 527453, 528877, 530303, 543693, 543794, 552247, 554853, 556722, 564694, 577612, 577679, 578531, 578765, 584382, 586479, 590719, 591330, 594037, 596895, 612843, 614420, 615664, 615823, 621655, 621767, 627846, 629819, 635627, 653766, 688656, 693361, 696499, 707703, 730975, 732735, 753752);
|