302.60 ms (94.16%)
|
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
464195
478049
500331
517180
519266
520015
520685
527572
528329
530791
531181
531405
534999
535045
536559
536801
546776
561375
561508
561993
564387
565973
576623
576625
576629
577355
577384
580243
587162
592318
592499
593501
596107
597683
599260
601210
605398
609154
612431
616097
618351
624815
625275
644748
646185
646243
668645
669056
670190
676179
676372
677279
692288
720115
732482
732799
741685
742375
750907
791489
799601
803343
805146
806146
807023
807216
807386
807390
810839
810926
812581
812791
812798
814821
]
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 (464195, 478049, 500331, 517180, 519266, 520015, 520685, 527572, 528329, 530791, 531181, 531405, 534999, 535045, 536559, 536801, 546776, 561375, 561508, 561993, 564387, 565973, 576623, 576625, 576629, 577355, 577384, 580243, 587162, 592318, 592499, 593501, 596107, 597683, 599260, 601210, 605398, 609154, 612431, 616097, 618351, 624815, 625275, 644748, 646185, 646243, 668645, 669056, 670190, 676179, 676372, 677279, 692288, 720115, 732482, 732799, 741685, 742375, 750907, 791489, 799601, 803343, 805146, 806146, 807023, 807216, 807386, 807390, 810839, 810926, 812581, 812791, 812798, 814821);
|
9.58 ms (2.98%)
|
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
807216
812791
812798
577355
576625
646243
670190
812581
791489
527572
536801
669056
732482
806146
741685
520015
577384
805146
814821
517180
531181
536559
565973
580243
676179
676372
546776
561993
593501
601210
596107
618351
592499
803343
807390
799601
478049
692288
732799
742375
534999
668645
810839
810926
530791
576629
519266
646185
587162
599260
597683
750907
464195
535045
564387
720115
576623
605398
528329
500331
561508
592318
520685
625275
531405
609154
677279
612431
644748
616097
807386
561375
807023
624815
]
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 (807216, 812791, 812798, 577355, 576625, 646243, 670190, 812581, 791489, 527572, 536801, 669056, 732482, 806146, 741685, 520015, 577384, 805146, 814821, 517180, 531181, 536559, 565973, 580243, 676179, 676372, 546776, 561993, 593501, 601210, 596107, 618351, 592499, 803343, 807390, 799601, 478049, 692288, 732799, 742375, 534999, 668645, 810839, 810926, 530791, 576629, 519266, 646185, 587162, 599260, 597683, 750907, 464195, 535045, 564387, 720115, 576623, 605398, 528329, 500331, 561508, 592318, 520685, 625275, 531405, 609154, 677279, 612431, 644748, 616097, 807386, 561375, 807023, 624815);
|
2.54 ms (0.79%)
|
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
464195
478049
500331
517180
519266
520015
520685
527572
528329
530791
531181
531405
534999
535045
536559
536801
546776
561375
561508
561993
564387
565973
576623
576625
576629
577355
577384
580243
587162
592318
592499
593501
596107
597683
599260
601210
605398
609154
612431
616097
618351
624815
625275
644748
646185
646243
668645
669056
670190
676179
676372
677279
692288
720115
732482
732799
741685
742375
750907
791489
799601
803343
805146
806146
807023
807216
807386
807390
810839
810926
812581
812791
812798
814821
]
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 (464195, 478049, 500331, 517180, 519266, 520015, 520685, 527572, 528329, 530791, 531181, 531405, 534999, 535045, 536559, 536801, 546776, 561375, 561508, 561993, 564387, 565973, 576623, 576625, 576629, 577355, 577384, 580243, 587162, 592318, 592499, 593501, 596107, 597683, 599260, 601210, 605398, 609154, 612431, 616097, 618351, 624815, 625275, 644748, 646185, 646243, 668645, 669056, 670190, 676179, 676372, 677279, 692288, 720115, 732482, 732799, 741685, 742375, 750907, 791489, 799601, 803343, 805146, 806146, 807023, 807216, 807386, 807390, 810839, 810926, 812581, 812791, 812798, 814821);
|