| 3 |
19.68 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
482379
572037
578066
594979
607204
555895
469090
471926
428134
517105
525360
475252
470505
451538
523306
496722
486459
542213
653861
508978
457332
551277
487128
661925
598846
467137
561132
582680
465662
526492
588584
546779
589767
560113
512452
494276
545819
454523
569417
471366
502480
516313
546747
561117
515724
550511
454456
445706
418399
624806
486444
491022
467678
512693
593162
462317
58584
519171
503659
523401
443323
632252
502279
571005
663537
621980
554301
516839
517092
553056
497171
603875
652539
]
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 (482379, 572037, 578066, 594979, 607204, 555895, 469090, 471926, 428134, 517105, 525360, 475252, 470505, 451538, 523306, 496722, 486459, 542213, 653861, 508978, 457332, 551277, 487128, 661925, 598846, 467137, 561132, 582680, 465662, 526492, 588584, 546779, 589767, 560113, 512452, 494276, 545819, 454523, 569417, 471366, 502480, 516313, 546747, 561117, 515724, 550511, 454456, 445706, 418399, 624806, 486444, 491022, 467678, 512693, 593162, 462317, 58584, 519171, 503659, 523401, 443323, 632252, 502279, 571005, 663537, 621980, 554301, 516839, 517092, 553056, 497171, 603875, 652539);
|
| 4 |
2.58 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
58584
418399
428134
443323
445706
451538
454456
454523
457332
462317
465662
467137
467678
469090
470505
471366
471926
475252
482379
486444
486459
487128
491022
494276
496722
497171
502279
502480
503659
508978
512452
512693
515724
516313
516839
517092
517105
519171
523306
523401
525360
526492
542213
545819
546747
546779
550511
551277
553056
554301
555895
560113
561117
561132
569417
571005
572037
578066
582680
588584
589767
593162
594979
598846
603875
607204
621980
624806
632252
652539
653861
661925
663537
]
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 (58584, 418399, 428134, 443323, 445706, 451538, 454456, 454523, 457332, 462317, 465662, 467137, 467678, 469090, 470505, 471366, 471926, 475252, 482379, 486444, 486459, 487128, 491022, 494276, 496722, 497171, 502279, 502480, 503659, 508978, 512452, 512693, 515724, 516313, 516839, 517092, 517105, 519171, 523306, 523401, 525360, 526492, 542213, 545819, 546747, 546779, 550511, 551277, 553056, 554301, 555895, 560113, 561117, 561132, 569417, 571005, 572037, 578066, 582680, 588584, 589767, 593162, 594979, 598846, 603875, 607204, 621980, 624806, 632252, 652539, 653861, 661925, 663537);
|
| 5 |
138.63 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
58584
418399
428134
443323
445706
451538
454456
454523
457332
462317
465662
467137
467678
469090
470505
471366
471926
475252
482379
486444
486459
487128
491022
494276
496722
497171
502279
502480
503659
508978
512452
512693
515724
516313
516839
517092
517105
519171
523306
523401
525360
526492
542213
545819
546747
546779
550511
551277
553056
554301
555895
560113
561117
561132
569417
571005
572037
578066
582680
588584
589767
593162
594979
598846
603875
607204
621980
624806
632252
652539
653861
661925
663537
]
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 (58584, 418399, 428134, 443323, 445706, 451538, 454456, 454523, 457332, 462317, 465662, 467137, 467678, 469090, 470505, 471366, 471926, 475252, 482379, 486444, 486459, 487128, 491022, 494276, 496722, 497171, 502279, 502480, 503659, 508978, 512452, 512693, 515724, 516313, 516839, 517092, 517105, 519171, 523306, 523401, 525360, 526492, 542213, 545819, 546747, 546779, 550511, 551277, 553056, 554301, 555895, 560113, 561117, 561132, 569417, 571005, 572037, 578066, 582680, 588584, 589767, 593162, 594979, 598846, 603875, 607204, 621980, 624806, 632252, 652539, 653861, 661925, 663537);
|