| 3 |
11.12 ms |
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
621306
541871
606697
513437
583837
671764
615743
513435
540203
573763
576712
603214
615738
615751
553303
554786
614745
538949
576699
598348
631058
633972
615734
469272
560204
690783
615740
615748
619082
524949
543478
571442
580258
619468
624154
513032
522898
648204
808060
464890
560085
648256
620135
157194
618534
622373
620130
522925
519246
624155
485066
577384
598407
610575
573765
659025
583668
620157
576691
671746
603247
532419
712891
478049
483417
571028
556778
556101
572026
422270
524276
542199
]
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 (621306, 541871, 606697, 513437, 583837, 671764, 615743, 513435, 540203, 573763, 576712, 603214, 615738, 615751, 553303, 554786, 614745, 538949, 576699, 598348, 631058, 633972, 615734, 469272, 560204, 690783, 615740, 615748, 619082, 524949, 543478, 571442, 580258, 619468, 624154, 513032, 522898, 648204, 808060, 464890, 560085, 648256, 620135, 157194, 618534, 622373, 620130, 522925, 519246, 624155, 485066, 577384, 598407, 610575, 573765, 659025, 583668, 620157, 576691, 671746, 603247, 532419, 712891, 478049, 483417, 571028, 556778, 556101, 572026, 422270, 524276, 542199);
|
| 4 |
2.05 ms |
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
157194
422270
464890
469272
478049
483417
485066
513032
513435
513437
519246
522898
522925
524276
524949
532419
538949
540203
541871
542199
543478
553303
554786
556101
556778
560085
560204
571028
571442
572026
573763
573765
576691
576699
576712
577384
580258
583668
583837
598348
598407
603214
603247
606697
610575
614745
615734
615738
615740
615743
615748
615751
618534
619082
619468
620130
620135
620157
621306
622373
624154
624155
631058
633972
648204
648256
659025
671746
671764
690783
712891
808060
]
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 (157194, 422270, 464890, 469272, 478049, 483417, 485066, 513032, 513435, 513437, 519246, 522898, 522925, 524276, 524949, 532419, 538949, 540203, 541871, 542199, 543478, 553303, 554786, 556101, 556778, 560085, 560204, 571028, 571442, 572026, 573763, 573765, 576691, 576699, 576712, 577384, 580258, 583668, 583837, 598348, 598407, 603214, 603247, 606697, 610575, 614745, 615734, 615738, 615740, 615743, 615748, 615751, 618534, 619082, 619468, 620130, 620135, 620157, 621306, 622373, 624154, 624155, 631058, 633972, 648204, 648256, 659025, 671746, 671764, 690783, 712891, 808060);
|
| 5 |
102.52 ms |
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
157194
422270
464890
469272
478049
483417
485066
513032
513435
513437
519246
522898
522925
524276
524949
532419
538949
540203
541871
542199
543478
553303
554786
556101
556778
560085
560204
571028
571442
572026
573763
573765
576691
576699
576712
577384
580258
583668
583837
598348
598407
603214
603247
606697
610575
614745
615734
615738
615740
615743
615748
615751
618534
619082
619468
620130
620135
620157
621306
622373
624154
624155
631058
633972
648204
648256
659025
671746
671764
690783
712891
808060
]
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 (157194, 422270, 464890, 469272, 478049, 483417, 485066, 513032, 513435, 513437, 519246, 522898, 522925, 524276, 524949, 532419, 538949, 540203, 541871, 542199, 543478, 553303, 554786, 556101, 556778, 560085, 560204, 571028, 571442, 572026, 573763, 573765, 576691, 576699, 576712, 577384, 580258, 583668, 583837, 598348, 598407, 603214, 603247, 606697, 610575, 614745, 615734, 615738, 615740, 615743, 615748, 615751, 618534, 619082, 619468, 620130, 620135, 620157, 621306, 622373, 624154, 624155, 631058, 633972, 648204, 648256, 659025, 671746, 671764, 690783, 712891, 808060);
|