| 4 |
16.66 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
700949
671619
566257
635222
640758
592530
753990
625686
775972
407414
409682
425134
428522
407039
470742
511527
520576
522207
187098
395721
430845
412311
418953
493212
525286
477200
562060
546124
550960
569520
602960
775809
809936
789769
805874
810116
460887
437843
415880
395571
416841
463215
484693
453813
456609
556027
581401
682153
604917
609100
601231
503321
444003
430827
471824
448716
481163
534215
650413
440625
424627
497404
483627
428022
424780
487717
625884
411581
512952
485464
590723
495199
]
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 (700949, 671619, 566257, 635222, 640758, 592530, 753990, 625686, 775972, 407414, 409682, 425134, 428522, 407039, 470742, 511527, 520576, 522207, 187098, 395721, 430845, 412311, 418953, 493212, 525286, 477200, 562060, 546124, 550960, 569520, 602960, 775809, 809936, 789769, 805874, 810116, 460887, 437843, 415880, 395571, 416841, 463215, 484693, 453813, 456609, 556027, 581401, 682153, 604917, 609100, 601231, 503321, 444003, 430827, 471824, 448716, 481163, 534215, 650413, 440625, 424627, 497404, 483627, 428022, 424780, 487717, 625884, 411581, 512952, 485464, 590723, 495199);
|
| 5 |
2.91 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
187098
395571
395721
407039
407414
409682
411581
412311
415880
416841
418953
424627
424780
425134
428022
428522
430827
430845
437843
440625
444003
448716
453813
456609
460887
463215
470742
471824
477200
481163
483627
484693
485464
487717
493212
495199
497404
503321
511527
512952
520576
522207
525286
534215
546124
550960
556027
562060
566257
569520
581401
590723
592530
601231
602960
604917
609100
625686
625884
635222
640758
650413
671619
682153
700949
753990
775809
775972
789769
805874
809936
810116
]
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 (187098, 395571, 395721, 407039, 407414, 409682, 411581, 412311, 415880, 416841, 418953, 424627, 424780, 425134, 428022, 428522, 430827, 430845, 437843, 440625, 444003, 448716, 453813, 456609, 460887, 463215, 470742, 471824, 477200, 481163, 483627, 484693, 485464, 487717, 493212, 495199, 497404, 503321, 511527, 512952, 520576, 522207, 525286, 534215, 546124, 550960, 556027, 562060, 566257, 569520, 581401, 590723, 592530, 601231, 602960, 604917, 609100, 625686, 625884, 635222, 640758, 650413, 671619, 682153, 700949, 753990, 775809, 775972, 789769, 805874, 809936, 810116);
|
| 6 |
101.67 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
187098
395571
395721
407039
407414
409682
411581
412311
415880
416841
418953
424627
424780
425134
428022
428522
430827
430845
437843
440625
444003
448716
453813
456609
460887
463215
470742
471824
477200
481163
483627
484693
485464
487717
493212
495199
497404
503321
511527
512952
520576
522207
525286
534215
546124
550960
556027
562060
566257
569520
581401
590723
592530
601231
602960
604917
609100
625686
625884
635222
640758
650413
671619
682153
700949
753990
775809
775972
789769
805874
809936
810116
]
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 (187098, 395571, 395721, 407039, 407414, 409682, 411581, 412311, 415880, 416841, 418953, 424627, 424780, 425134, 428022, 428522, 430827, 430845, 437843, 440625, 444003, 448716, 453813, 456609, 460887, 463215, 470742, 471824, 477200, 481163, 483627, 484693, 485464, 487717, 493212, 495199, 497404, 503321, 511527, 512952, 520576, 522207, 525286, 534215, 546124, 550960, 556027, 562060, 566257, 569520, 581401, 590723, 592530, 601231, 602960, 604917, 609100, 625686, 625884, 635222, 640758, 650413, 671619, 682153, 700949, 753990, 775809, 775972, 789769, 805874, 809936, 810116);
|