| 3 |
18.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
417002
311897
435594
418714
434335
521244
511273
521786
523970
778246
757669
742636
418519
512355
487815
441027
446796
463840
466477
498391
530110
564961
583425
583385
542042
679142
624191
610552
620244
785812
788525
451774
491920
515440
497837
517807
479743
423783
510797
560665
545404
555023
462840
478025
511379
604205
435794
526246
581873
556755
499803
508537
521798
525245
598810
624272
477125
524512
585885
382230
424351
564686
604933
641126
623206
616818
612068
511600
582277
435449
498226
499906
647893
533707
]
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 (417002, 311897, 435594, 418714, 434335, 521244, 511273, 521786, 523970, 778246, 757669, 742636, 418519, 512355, 487815, 441027, 446796, 463840, 466477, 498391, 530110, 564961, 583425, 583385, 542042, 679142, 624191, 610552, 620244, 785812, 788525, 451774, 491920, 515440, 497837, 517807, 479743, 423783, 510797, 560665, 545404, 555023, 462840, 478025, 511379, 604205, 435794, 526246, 581873, 556755, 499803, 508537, 521798, 525245, 598810, 624272, 477125, 524512, 585885, 382230, 424351, 564686, 604933, 641126, 623206, 616818, 612068, 511600, 582277, 435449, 498226, 499906, 647893, 533707);
|
| 4 |
4.22 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
311897
382230
417002
418519
418714
423783
424351
434335
435449
435594
435794
441027
446796
451774
462840
463840
466477
477125
478025
479743
487815
491920
497837
498226
498391
499803
499906
508537
510797
511273
511379
511600
512355
515440
517807
521244
521786
521798
523970
524512
525245
526246
530110
533707
542042
545404
555023
556755
560665
564686
564961
581873
582277
583385
583425
585885
598810
604205
604933
610552
612068
616818
620244
623206
624191
624272
641126
647893
679142
742636
757669
778246
785812
788525
]
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 (311897, 382230, 417002, 418519, 418714, 423783, 424351, 434335, 435449, 435594, 435794, 441027, 446796, 451774, 462840, 463840, 466477, 477125, 478025, 479743, 487815, 491920, 497837, 498226, 498391, 499803, 499906, 508537, 510797, 511273, 511379, 511600, 512355, 515440, 517807, 521244, 521786, 521798, 523970, 524512, 525245, 526246, 530110, 533707, 542042, 545404, 555023, 556755, 560665, 564686, 564961, 581873, 582277, 583385, 583425, 585885, 598810, 604205, 604933, 610552, 612068, 616818, 620244, 623206, 624191, 624272, 641126, 647893, 679142, 742636, 757669, 778246, 785812, 788525);
|
| 5 |
143.69 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
311897
382230
417002
418519
418714
423783
424351
434335
435449
435594
435794
441027
446796
451774
462840
463840
466477
477125
478025
479743
487815
491920
497837
498226
498391
499803
499906
508537
510797
511273
511379
511600
512355
515440
517807
521244
521786
521798
523970
524512
525245
526246
530110
533707
542042
545404
555023
556755
560665
564686
564961
581873
582277
583385
583425
585885
598810
604205
604933
610552
612068
616818
620244
623206
624191
624272
641126
647893
679142
742636
757669
778246
785812
788525
]
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 (311897, 382230, 417002, 418519, 418714, 423783, 424351, 434335, 435449, 435594, 435794, 441027, 446796, 451774, 462840, 463840, 466477, 477125, 478025, 479743, 487815, 491920, 497837, 498226, 498391, 499803, 499906, 508537, 510797, 511273, 511379, 511600, 512355, 515440, 517807, 521244, 521786, 521798, 523970, 524512, 525245, 526246, 530110, 533707, 542042, 545404, 555023, 556755, 560665, 564686, 564961, 581873, 582277, 583385, 583425, 585885, 598810, 604205, 604933, 610552, 612068, 616818, 620244, 623206, 624191, 624272, 641126, 647893, 679142, 742636, 757669, 778246, 785812, 788525);
|