100.80 ms (80.09%)
|
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
181304
393076
395547
395552
395620
395622
395632
395648
395674
395682
395687
395696
395718
395727
395812
395818
395826
395856
395913
395970
395981
395984
396005
396012
396020
396035
396234
396238
396253
396670
401091
401127
402008
411201
415658
418686
419867
419872
419880
419888
428494
428631
447858
459804
459807
463298
463873
463954
468612
475410
477859
489108
490143
509940
512094
514070
516449
519553
519569
523396
524530
527416
527996
554780
558119
565156
565163
565169
569238
598657
602966
605521
624226
760958
]
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 (181304, 393076, 395547, 395552, 395620, 395622, 395632, 395648, 395674, 395682, 395687, 395696, 395718, 395727, 395812, 395818, 395826, 395856, 395913, 395970, 395981, 395984, 396005, 396012, 396020, 396035, 396234, 396238, 396253, 396670, 401091, 401127, 402008, 411201, 415658, 418686, 419867, 419872, 419880, 419888, 428494, 428631, 447858, 459804, 459807, 463298, 463873, 463954, 468612, 475410, 477859, 489108, 490143, 509940, 512094, 514070, 516449, 519553, 519569, 523396, 524530, 527416, 527996, 554780, 558119, 565156, 565163, 565169, 569238, 598657, 602966, 605521, 624226, 760958);
|
13.21 ms (10.50%)
|
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
569238
447858
395682
396238
463954
489108
516449
519569
395970
396234
395547
395620
428631
554780
760958
475410
395687
395984
428494
509940
396035
401127
395727
396670
181304
395632
395826
396253
419888
395812
396005
463873
395674
477859
395913
524530
401091
523396
459804
558119
395648
402008
519553
459807
395552
395622
395981
395856
396012
419880
468612
396020
411201
490143
527996
393076
415658
419867
565163
463298
395818
419872
512094
527416
565156
598657
602966
395718
565169
605521
395696
418686
514070
624226
]
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 (569238, 447858, 395682, 396238, 463954, 489108, 516449, 519569, 395970, 396234, 395547, 395620, 428631, 554780, 760958, 475410, 395687, 395984, 428494, 509940, 396035, 401127, 395727, 396670, 181304, 395632, 395826, 396253, 419888, 395812, 396005, 463873, 395674, 477859, 395913, 524530, 401091, 523396, 459804, 558119, 395648, 402008, 519553, 459807, 395552, 395622, 395981, 395856, 396012, 419880, 468612, 396020, 411201, 490143, 527996, 393076, 415658, 419867, 565163, 463298, 395818, 419872, 512094, 527416, 565156, 598657, 602966, 395718, 565169, 605521, 395696, 418686, 514070, 624226);
|
2.57 ms (2.04%)
|
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
181304
393076
395547
395552
395620
395622
395632
395648
395674
395682
395687
395696
395718
395727
395812
395818
395826
395856
395913
395970
395981
395984
396005
396012
396020
396035
396234
396238
396253
396670
401091
401127
402008
411201
415658
418686
419867
419872
419880
419888
428494
428631
447858
459804
459807
463298
463873
463954
468612
475410
477859
489108
490143
509940
512094
514070
516449
519553
519569
523396
524530
527416
527996
554780
558119
565156
565163
565169
569238
598657
602966
605521
624226
760958
]
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 (181304, 393076, 395547, 395552, 395620, 395622, 395632, 395648, 395674, 395682, 395687, 395696, 395718, 395727, 395812, 395818, 395826, 395856, 395913, 395970, 395981, 395984, 396005, 396012, 396020, 396035, 396234, 396238, 396253, 396670, 401091, 401127, 402008, 411201, 415658, 418686, 419867, 419872, 419880, 419888, 428494, 428631, 447858, 459804, 459807, 463298, 463873, 463954, 468612, 475410, 477859, 489108, 490143, 509940, 512094, 514070, 516449, 519553, 519569, 523396, 524530, 527416, 527996, 554780, 558119, 565156, 565163, 565169, 569238, 598657, 602966, 605521, 624226, 760958);
|