91.80 ms (80.42%)
|
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
391651
395894
401500
414116
414125
416676
420222
425988
439779
439813
440687
444141
444527
444544
454958
454961
455915
457445
457459
461137
465222
465544
466564
467598
467973
469391
478039
487294
496126
502609
505723
507098
507245
511777
511991
517651
520662
522264
523565
529130
529306
530291
540141
546114
549248
553096
562367
562790
564398
564743
568059
568587
569313
571734
572201
572305
572771
580149
587833
591706
595510
601949
603709
610046
613014
619475
620085
623421
624451
625685
626347
626428
641126
650413
679003
765491
788264
]
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 (391651, 395894, 401500, 414116, 414125, 416676, 420222, 425988, 439779, 439813, 440687, 444141, 444527, 444544, 454958, 454961, 455915, 457445, 457459, 461137, 465222, 465544, 466564, 467598, 467973, 469391, 478039, 487294, 496126, 502609, 505723, 507098, 507245, 511777, 511991, 517651, 520662, 522264, 523565, 529130, 529306, 530291, 540141, 546114, 549248, 553096, 562367, 562790, 564398, 564743, 568059, 568587, 569313, 571734, 572201, 572305, 572771, 580149, 587833, 591706, 595510, 601949, 603709, 610046, 613014, 619475, 620085, 623421, 624451, 625685, 626347, 626428, 641126, 650413, 679003, 765491, 788264);
|
12.70 ms (11.13%)
|
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
440687
478039
454958
572201
457445
568587
502609
511777
467598
679003
496126
522264
564743
425988
455915
529306
564398
765491
469391
571734
454961
444527
465544
457459
507245
626347
587833
507098
487294
626428
414125
625685
416676
788264
414116
444544
465222
439813
520662
603709
623421
395894
391651
444141
466564
401500
580149
439779
505723
624451
601949
572305
553096
641126
529130
569313
511991
517651
620085
595510
650413
467973
549248
420222
530291
568059
562790
591706
613014
523565
562367
540141
572771
461137
546114
610046
619475
]
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 (440687, 478039, 454958, 572201, 457445, 568587, 502609, 511777, 467598, 679003, 496126, 522264, 564743, 425988, 455915, 529306, 564398, 765491, 469391, 571734, 454961, 444527, 465544, 457459, 507245, 626347, 587833, 507098, 487294, 626428, 414125, 625685, 416676, 788264, 414116, 444544, 465222, 439813, 520662, 603709, 623421, 395894, 391651, 444141, 466564, 401500, 580149, 439779, 505723, 624451, 601949, 572305, 553096, 641126, 529130, 569313, 511991, 517651, 620085, 595510, 650413, 467973, 549248, 420222, 530291, 568059, 562790, 591706, 613014, 523565, 562367, 540141, 572771, 461137, 546114, 610046, 619475);
|
2.48 ms (2.17%)
|
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
391651
395894
401500
414116
414125
416676
420222
425988
439779
439813
440687
444141
444527
444544
454958
454961
455915
457445
457459
461137
465222
465544
466564
467598
467973
469391
478039
487294
496126
502609
505723
507098
507245
511777
511991
517651
520662
522264
523565
529130
529306
530291
540141
546114
549248
553096
562367
562790
564398
564743
568059
568587
569313
571734
572201
572305
572771
580149
587833
591706
595510
601949
603709
610046
613014
619475
620085
623421
624451
625685
626347
626428
641126
650413
679003
765491
788264
]
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 (391651, 395894, 401500, 414116, 414125, 416676, 420222, 425988, 439779, 439813, 440687, 444141, 444527, 444544, 454958, 454961, 455915, 457445, 457459, 461137, 465222, 465544, 466564, 467598, 467973, 469391, 478039, 487294, 496126, 502609, 505723, 507098, 507245, 511777, 511991, 517651, 520662, 522264, 523565, 529130, 529306, 530291, 540141, 546114, 549248, 553096, 562367, 562790, 564398, 564743, 568059, 568587, 569313, 571734, 572201, 572305, 572771, 580149, 587833, 591706, 595510, 601949, 603709, 610046, 613014, 619475, 620085, 623421, 624451, 625685, 626347, 626428, 641126, 650413, 679003, 765491, 788264);
|