91.57 ms (78.08%)
|
1 |
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
191252
400143
400209
405804
415388
415542
415577
415630
415834
415836
416415
442773
443167
449428
449888
453304
455341
459189
470924
471055
471613
472955
475102
476117
477314
480412
482080
485055
485576
498294
499035
505796
506475
510557
516740
517444
517603
517760
517856
518319
521790
522673
523171
523402
523970
524627
524914
529811
531656
532028
533027
533461
535008
535434
537345
543814
543844
549353
552344
553147
560196
568641
576349
580596
582535
588300
588306
591468
594437
601864
606680
606800
609874
640569
689755
695163
723096
760237
]
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 (191252, 400143, 400209, 405804, 415388, 415542, 415577, 415630, 415834, 415836, 416415, 442773, 443167, 449428, 449888, 453304, 455341, 459189, 470924, 471055, 471613, 472955, 475102, 476117, 477314, 480412, 482080, 485055, 485576, 498294, 499035, 505796, 506475, 510557, 516740, 517444, 517603, 517760, 517856, 518319, 521790, 522673, 523171, 523402, 523970, 524627, 524914, 529811, 531656, 532028, 533027, 533461, 535008, 535434, 537345, 543814, 543844, 549353, 552344, 553147, 560196, 568641, 576349, 580596, 582535, 588300, 588306, 591468, 594437, 601864, 606680, 606800, 609874, 640569, 689755, 695163, 723096, 760237);
|
13.61 ms (11.60%)
|
1 |
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
505796
521790
537345
535008
517444
524914
582535
576349
553147
723096
549353
606680
588300
588306
591468
760237
640569
415577
471613
415542
415834
442773
516740
498294
524627
518319
523970
415630
443167
455341
453304
499035
510557
535434
529811
531656
543814
580596
568641
689755
609874
459189
475102
400143
477314
471055
449888
470924
472955
506475
517856
517760
191252
415836
476117
517603
522673
533027
485055
695163
601864
415388
533461
485576
400209
552344
560196
482080
449428
480412
523402
416415
523171
594437
606800
543844
405804
532028
]
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 (505796, 521790, 537345, 535008, 517444, 524914, 582535, 576349, 553147, 723096, 549353, 606680, 588300, 588306, 591468, 760237, 640569, 415577, 471613, 415542, 415834, 442773, 516740, 498294, 524627, 518319, 523970, 415630, 443167, 455341, 453304, 499035, 510557, 535434, 529811, 531656, 543814, 580596, 568641, 689755, 609874, 459189, 475102, 400143, 477314, 471055, 449888, 470924, 472955, 506475, 517856, 517760, 191252, 415836, 476117, 517603, 522673, 533027, 485055, 695163, 601864, 415388, 533461, 485576, 400209, 552344, 560196, 482080, 449428, 480412, 523402, 416415, 523171, 594437, 606800, 543844, 405804, 532028);
|
2.76 ms (2.35%)
|
1 |
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
191252
400143
400209
405804
415388
415542
415577
415630
415834
415836
416415
442773
443167
449428
449888
453304
455341
459189
470924
471055
471613
472955
475102
476117
477314
480412
482080
485055
485576
498294
499035
505796
506475
510557
516740
517444
517603
517760
517856
518319
521790
522673
523171
523402
523970
524627
524914
529811
531656
532028
533027
533461
535008
535434
537345
543814
543844
549353
552344
553147
560196
568641
576349
580596
582535
588300
588306
591468
594437
601864
606680
606800
609874
640569
689755
695163
723096
760237
]
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 (191252, 400143, 400209, 405804, 415388, 415542, 415577, 415630, 415834, 415836, 416415, 442773, 443167, 449428, 449888, 453304, 455341, 459189, 470924, 471055, 471613, 472955, 475102, 476117, 477314, 480412, 482080, 485055, 485576, 498294, 499035, 505796, 506475, 510557, 516740, 517444, 517603, 517760, 517856, 518319, 521790, 522673, 523171, 523402, 523970, 524627, 524914, 529811, 531656, 532028, 533027, 533461, 535008, 535434, 537345, 543814, 543844, 549353, 552344, 553147, 560196, 568641, 576349, 580596, 582535, 588300, 588306, 591468, 594437, 601864, 606680, 606800, 609874, 640569, 689755, 695163, 723096, 760237);
|