99.00 ms (81.96%)
|
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
401274
401927
417811
440780
445627
446402
460479
463079
463136
464594
466490
469736
472325
472840
472931
474857
477200
480297
480707
484299
484870
485759
488217
488362
490188
496870
503863
504610
504769
504854
505679
505688
506467
509296
521586
523654
524903
525138
526104
527470
528711
529277
530061
533042
538803
540478
547781
550972
554413
558194
558441
565219
565506
567109
580035
580079
580289
580368
584642
588286
589761
596500
598941
599172
599967
604524
605456
614273
619508
621508
626760
634127
651107
667646
667695
671395
739294
798901
]
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 (401274, 401927, 417811, 440780, 445627, 446402, 460479, 463079, 463136, 464594, 466490, 469736, 472325, 472840, 472931, 474857, 477200, 480297, 480707, 484299, 484870, 485759, 488217, 488362, 490188, 496870, 503863, 504610, 504769, 504854, 505679, 505688, 506467, 509296, 521586, 523654, 524903, 525138, 526104, 527470, 528711, 529277, 530061, 533042, 538803, 540478, 547781, 550972, 554413, 558194, 558441, 565219, 565506, 567109, 580035, 580079, 580289, 580368, 584642, 588286, 589761, 596500, 598941, 599172, 599967, 604524, 605456, 614273, 619508, 621508, 626760, 634127, 651107, 667646, 667695, 671395, 739294, 798901);
|
12.03 ms (9.96%)
|
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
526104
798901
460479
521586
540478
527470
580035
580368
584642
626760
504769
496870
466490
503863
528711
505688
524903
529277
550972
667695
667646
565219
589761
598941
599172
619508
472325
480297
605456
599967
504854
505679
558441
480707
621508
485759
446402
509296
477200
558194
554413
604524
588286
739294
488362
463136
469736
445627
530061
565506
504610
671395
567109
580079
472931
488217
525138
651107
474857
533042
484299
523654
484870
547781
401927
580289
634127
417811
472840
614273
401274
596500
490188
440780
463079
464594
506467
538803
]
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 (526104, 798901, 460479, 521586, 540478, 527470, 580035, 580368, 584642, 626760, 504769, 496870, 466490, 503863, 528711, 505688, 524903, 529277, 550972, 667695, 667646, 565219, 589761, 598941, 599172, 619508, 472325, 480297, 605456, 599967, 504854, 505679, 558441, 480707, 621508, 485759, 446402, 509296, 477200, 558194, 554413, 604524, 588286, 739294, 488362, 463136, 469736, 445627, 530061, 565506, 504610, 671395, 567109, 580079, 472931, 488217, 525138, 651107, 474857, 533042, 484299, 523654, 484870, 547781, 401927, 580289, 634127, 417811, 472840, 614273, 401274, 596500, 490188, 440780, 463079, 464594, 506467, 538803);
|
2.83 ms (2.35%)
|
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
401274
401927
417811
440780
445627
446402
460479
463079
463136
464594
466490
469736
472325
472840
472931
474857
477200
480297
480707
484299
484870
485759
488217
488362
490188
496870
503863
504610
504769
504854
505679
505688
506467
509296
521586
523654
524903
525138
526104
527470
528711
529277
530061
533042
538803
540478
547781
550972
554413
558194
558441
565219
565506
567109
580035
580079
580289
580368
584642
588286
589761
596500
598941
599172
599967
604524
605456
614273
619508
621508
626760
634127
651107
667646
667695
671395
739294
798901
]
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 (401274, 401927, 417811, 440780, 445627, 446402, 460479, 463079, 463136, 464594, 466490, 469736, 472325, 472840, 472931, 474857, 477200, 480297, 480707, 484299, 484870, 485759, 488217, 488362, 490188, 496870, 503863, 504610, 504769, 504854, 505679, 505688, 506467, 509296, 521586, 523654, 524903, 525138, 526104, 527470, 528711, 529277, 530061, 533042, 538803, 540478, 547781, 550972, 554413, 558194, 558441, 565219, 565506, 567109, 580035, 580079, 580289, 580368, 584642, 588286, 589761, 596500, 598941, 599172, 599967, 604524, 605456, 614273, 619508, 621508, 626760, 634127, 651107, 667646, 667695, 671395, 739294, 798901);
|