80.73 ms (75.25%)
|
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
384757
406298
413889
415568
424214
426399
469462
471176
472299
472941
473779
475630
475911
478032
484017
484331
486875
493121
495393
495752
496792
498047
499365
504841
509657
511313
514070
515454
516265
517068
517842
519962
520851
523335
524896
525610
530784
531116
531540
532676
534981
535344
536288
539319
543842
551909
551919
555991
556009
557119
557128
562001
562790
562894
567743
571213
575815
576645
586591
587757
595595
602249
609795
612335
618399
620157
620754
633786
640695
641698
657775
663212
667748
669012
676632
681547
681660
808526
]
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 (384757, 406298, 413889, 415568, 424214, 426399, 469462, 471176, 472299, 472941, 473779, 475630, 475911, 478032, 484017, 484331, 486875, 493121, 495393, 495752, 496792, 498047, 499365, 504841, 509657, 511313, 514070, 515454, 516265, 517068, 517842, 519962, 520851, 523335, 524896, 525610, 530784, 531116, 531540, 532676, 534981, 535344, 536288, 539319, 543842, 551909, 551919, 555991, 556009, 557119, 557128, 562001, 562790, 562894, 567743, 571213, 575815, 576645, 586591, 587757, 595595, 602249, 609795, 612335, 618399, 620157, 620754, 633786, 640695, 641698, 657775, 663212, 667748, 669012, 676632, 681547, 681660, 808526);
|
16.54 ms (15.42%)
|
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
493121
504841
535344
562894
641698
534981
531116
536288
519962
531540
575815
595595
587757
640695
618399
413889
516265
509657
517068
517842
520851
473779
525610
515454
663212
472299
478032
551909
669012
471176
475911
499365
557119
657775
406298
415568
532676
551919
555991
576645
676632
681660
556009
612335
633786
620157
426399
486875
539319
530784
586591
524896
484331
495393
511313
384757
557128
681547
602249
424214
496792
472941
495752
514070
562001
571213
469462
808526
498047
667748
609795
523335
562790
620754
543842
567743
475630
484017
]
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 (493121, 504841, 535344, 562894, 641698, 534981, 531116, 536288, 519962, 531540, 575815, 595595, 587757, 640695, 618399, 413889, 516265, 509657, 517068, 517842, 520851, 473779, 525610, 515454, 663212, 472299, 478032, 551909, 669012, 471176, 475911, 499365, 557119, 657775, 406298, 415568, 532676, 551919, 555991, 576645, 676632, 681660, 556009, 612335, 633786, 620157, 426399, 486875, 539319, 530784, 586591, 524896, 484331, 495393, 511313, 384757, 557128, 681547, 602249, 424214, 496792, 472941, 495752, 514070, 562001, 571213, 469462, 808526, 498047, 667748, 609795, 523335, 562790, 620754, 543842, 567743, 475630, 484017);
|
2.32 ms (2.16%)
|
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
384757
406298
413889
415568
424214
426399
469462
471176
472299
472941
473779
475630
475911
478032
484017
484331
486875
493121
495393
495752
496792
498047
499365
504841
509657
511313
514070
515454
516265
517068
517842
519962
520851
523335
524896
525610
530784
531116
531540
532676
534981
535344
536288
539319
543842
551909
551919
555991
556009
557119
557128
562001
562790
562894
567743
571213
575815
576645
586591
587757
595595
602249
609795
612335
618399
620157
620754
633786
640695
641698
657775
663212
667748
669012
676632
681547
681660
808526
]
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 (384757, 406298, 413889, 415568, 424214, 426399, 469462, 471176, 472299, 472941, 473779, 475630, 475911, 478032, 484017, 484331, 486875, 493121, 495393, 495752, 496792, 498047, 499365, 504841, 509657, 511313, 514070, 515454, 516265, 517068, 517842, 519962, 520851, 523335, 524896, 525610, 530784, 531116, 531540, 532676, 534981, 535344, 536288, 539319, 543842, 551909, 551919, 555991, 556009, 557119, 557128, 562001, 562790, 562894, 567743, 571213, 575815, 576645, 586591, 587757, 595595, 602249, 609795, 612335, 618399, 620157, 620754, 633786, 640695, 641698, 657775, 663212, 667748, 669012, 676632, 681547, 681660, 808526);
|