81.42 ms (79.62%)
|
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
383273
391327
391437
391941
400481
400491
400497
401239
413461
418521
419468
419546
419619
419956
421861
421876
421900
422172
422201
424266
425903
426294
426296
428103
428473
429872
440644
441952
445838
448698
454969
464006
466885
466989
472184
473476
475329
477005
484680
485374
485797
485966
488559
502599
506047
538281
542321
542456
542956
547536
554839
573178
579429
579431
581929
584352
592614
596779
601101
605634
607608
623468
629742
637001
637148
727037
747223
747228
747231
747236
750790
776217
781999
805462
]
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 (383273, 391327, 391437, 391941, 400481, 400491, 400497, 401239, 413461, 418521, 419468, 419546, 419619, 419956, 421861, 421876, 421900, 422172, 422201, 424266, 425903, 426294, 426296, 428103, 428473, 429872, 440644, 441952, 445838, 448698, 454969, 464006, 466885, 466989, 472184, 473476, 475329, 477005, 484680, 485374, 485797, 485966, 488559, 502599, 506047, 538281, 542321, 542456, 542956, 547536, 554839, 573178, 579429, 579431, 581929, 584352, 592614, 596779, 601101, 605634, 607608, 623468, 629742, 637001, 637148, 727037, 747223, 747228, 747231, 747236, 750790, 776217, 781999, 805462);
|
12.76 ms (12.48%)
|
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
428473
542956
637001
419546
466885
383273
401239
629742
391437
422201
421876
428103
637148
506047
573178
776217
750790
477005
424266
448698
592614
805462
473476
441952
445838
727037
781999
400481
419468
422172
472184
502599
542321
596779
418521
419619
429872
623468
538281
440644
391327
426294
485966
605634
747223
421861
475329
485797
542456
747231
466989
607608
426296
413461
425903
464006
579429
547536
554839
747228
391941
454969
488559
581929
584352
400497
485374
419956
579431
747236
421900
400491
601101
484680
]
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 (428473, 542956, 637001, 419546, 466885, 383273, 401239, 629742, 391437, 422201, 421876, 428103, 637148, 506047, 573178, 776217, 750790, 477005, 424266, 448698, 592614, 805462, 473476, 441952, 445838, 727037, 781999, 400481, 419468, 422172, 472184, 502599, 542321, 596779, 418521, 419619, 429872, 623468, 538281, 440644, 391327, 426294, 485966, 605634, 747223, 421861, 475329, 485797, 542456, 747231, 466989, 607608, 426296, 413461, 425903, 464006, 579429, 547536, 554839, 747228, 391941, 454969, 488559, 581929, 584352, 400497, 485374, 419956, 579431, 747236, 421900, 400491, 601101, 484680);
|
1.97 ms (1.93%)
|
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
383273
391327
391437
391941
400481
400491
400497
401239
413461
418521
419468
419546
419619
419956
421861
421876
421900
422172
422201
424266
425903
426294
426296
428103
428473
429872
440644
441952
445838
448698
454969
464006
466885
466989
472184
473476
475329
477005
484680
485374
485797
485966
488559
502599
506047
538281
542321
542456
542956
547536
554839
573178
579429
579431
581929
584352
592614
596779
601101
605634
607608
623468
629742
637001
637148
727037
747223
747228
747231
747236
750790
776217
781999
805462
]
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 (383273, 391327, 391437, 391941, 400481, 400491, 400497, 401239, 413461, 418521, 419468, 419546, 419619, 419956, 421861, 421876, 421900, 422172, 422201, 424266, 425903, 426294, 426296, 428103, 428473, 429872, 440644, 441952, 445838, 448698, 454969, 464006, 466885, 466989, 472184, 473476, 475329, 477005, 484680, 485374, 485797, 485966, 488559, 502599, 506047, 538281, 542321, 542456, 542956, 547536, 554839, 573178, 579429, 579431, 581929, 584352, 592614, 596779, 601101, 605634, 607608, 623468, 629742, 637001, 637148, 727037, 747223, 747228, 747231, 747236, 750790, 776217, 781999, 805462);
|