| 3 |
18.27 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
492592
534333
444206
414135
415808
424801
473384
514656
517927
521506
523279
523366
524311
525085
497462
525042
516969
525898
468887
557100
557438
562905
568174
599738
591219
782911
724758
417832
417830
485179
517934
419319
439216
445306
447035
492134
523480
516693
523482
544860
544858
479191
461079
446947
462926
503720
486275
523454
528704
483359
528732
540151
682252
643370
473189
486250
514653
528702
521515
521507
603900
517563
452916
513215
517843
526443
543434
547525
526808
527199
536397
520355
]
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 (492592, 534333, 444206, 414135, 415808, 424801, 473384, 514656, 517927, 521506, 523279, 523366, 524311, 525085, 497462, 525042, 516969, 525898, 468887, 557100, 557438, 562905, 568174, 599738, 591219, 782911, 724758, 417832, 417830, 485179, 517934, 419319, 439216, 445306, 447035, 492134, 523480, 516693, 523482, 544860, 544858, 479191, 461079, 446947, 462926, 503720, 486275, 523454, 528704, 483359, 528732, 540151, 682252, 643370, 473189, 486250, 514653, 528702, 521515, 521507, 603900, 517563, 452916, 513215, 517843, 526443, 543434, 547525, 526808, 527199, 536397, 520355);
|
| 4 |
2.51 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
414135
415808
417830
417832
419319
424801
439216
444206
445306
446947
447035
452916
461079
462926
468887
473189
473384
479191
483359
485179
486250
486275
492134
492592
497462
503720
513215
514653
514656
516693
516969
517563
517843
517927
517934
520355
521506
521507
521515
523279
523366
523454
523480
523482
524311
525042
525085
525898
526443
526808
527199
528702
528704
528732
534333
536397
540151
543434
544858
544860
547525
557100
557438
562905
568174
591219
599738
603900
643370
682252
724758
782911
]
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 (414135, 415808, 417830, 417832, 419319, 424801, 439216, 444206, 445306, 446947, 447035, 452916, 461079, 462926, 468887, 473189, 473384, 479191, 483359, 485179, 486250, 486275, 492134, 492592, 497462, 503720, 513215, 514653, 514656, 516693, 516969, 517563, 517843, 517927, 517934, 520355, 521506, 521507, 521515, 523279, 523366, 523454, 523480, 523482, 524311, 525042, 525085, 525898, 526443, 526808, 527199, 528702, 528704, 528732, 534333, 536397, 540151, 543434, 544858, 544860, 547525, 557100, 557438, 562905, 568174, 591219, 599738, 603900, 643370, 682252, 724758, 782911);
|
| 5 |
91.59 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
414135
415808
417830
417832
419319
424801
439216
444206
445306
446947
447035
452916
461079
462926
468887
473189
473384
479191
483359
485179
486250
486275
492134
492592
497462
503720
513215
514653
514656
516693
516969
517563
517843
517927
517934
520355
521506
521507
521515
523279
523366
523454
523480
523482
524311
525042
525085
525898
526443
526808
527199
528702
528704
528732
534333
536397
540151
543434
544858
544860
547525
557100
557438
562905
568174
591219
599738
603900
643370
682252
724758
782911
]
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 (414135, 415808, 417830, 417832, 419319, 424801, 439216, 444206, 445306, 446947, 447035, 452916, 461079, 462926, 468887, 473189, 473384, 479191, 483359, 485179, 486250, 486275, 492134, 492592, 497462, 503720, 513215, 514653, 514656, 516693, 516969, 517563, 517843, 517927, 517934, 520355, 521506, 521507, 521515, 523279, 523366, 523454, 523480, 523482, 524311, 525042, 525085, 525898, 526443, 526808, 527199, 528702, 528704, 528732, 534333, 536397, 540151, 543434, 544858, 544860, 547525, 557100, 557438, 562905, 568174, 591219, 599738, 603900, 643370, 682252, 724758, 782911);
|