| 4 |
15.69 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
417660
417493
614673
466739
476887
452659
501682
498345
507876
496813
522383
526492
528445
541776
569431
552991
555127
699409
566047
598644
596497
618534
643517
599950
812486
766141
744704
602006
615145
714468
418574
432707
436235
453875
455804
418572
443987
444194
478707
523430
510769
525190
508796
525612
526908
527706
487605
527738
386456
464857
525349
551617
550587
568283
661510
584511
403588
434829
438067
466230
469756
464193
521637
511791
526118
500758
452251
510404
560048
566122
567756
633047
590526
522975
525881
539286
521785
627632
591394
425821
510498
603911
520632
526912
567053
659216
628273
590670
597282
594830
627139
532644
]
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 (417660, 417493, 614673, 466739, 476887, 452659, 501682, 498345, 507876, 496813, 522383, 526492, 528445, 541776, 569431, 552991, 555127, 699409, 566047, 598644, 596497, 618534, 643517, 599950, 812486, 766141, 744704, 602006, 615145, 714468, 418574, 432707, 436235, 453875, 455804, 418572, 443987, 444194, 478707, 523430, 510769, 525190, 508796, 525612, 526908, 527706, 487605, 527738, 386456, 464857, 525349, 551617, 550587, 568283, 661510, 584511, 403588, 434829, 438067, 466230, 469756, 464193, 521637, 511791, 526118, 500758, 452251, 510404, 560048, 566122, 567756, 633047, 590526, 522975, 525881, 539286, 521785, 627632, 591394, 425821, 510498, 603911, 520632, 526912, 567053, 659216, 628273, 590670, 597282, 594830, 627139, 532644);
|
| 5 |
2.37 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
386456
403588
417493
417660
418572
418574
425821
432707
434829
436235
438067
443987
444194
452251
452659
453875
455804
464193
464857
466230
466739
469756
476887
478707
487605
496813
498345
500758
501682
507876
508796
510404
510498
510769
511791
520632
521637
521785
522383
522975
523430
525190
525349
525612
525881
526118
526492
526908
526912
527706
527738
528445
532644
539286
541776
550587
551617
552991
555127
560048
566047
566122
567053
567756
568283
569431
584511
590526
590670
591394
594830
596497
597282
598644
599950
602006
603911
614673
615145
618534
627139
627632
628273
633047
643517
659216
661510
699409
714468
744704
766141
812486
]
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 (386456, 403588, 417493, 417660, 418572, 418574, 425821, 432707, 434829, 436235, 438067, 443987, 444194, 452251, 452659, 453875, 455804, 464193, 464857, 466230, 466739, 469756, 476887, 478707, 487605, 496813, 498345, 500758, 501682, 507876, 508796, 510404, 510498, 510769, 511791, 520632, 521637, 521785, 522383, 522975, 523430, 525190, 525349, 525612, 525881, 526118, 526492, 526908, 526912, 527706, 527738, 528445, 532644, 539286, 541776, 550587, 551617, 552991, 555127, 560048, 566047, 566122, 567053, 567756, 568283, 569431, 584511, 590526, 590670, 591394, 594830, 596497, 597282, 598644, 599950, 602006, 603911, 614673, 615145, 618534, 627139, 627632, 628273, 633047, 643517, 659216, 661510, 699409, 714468, 744704, 766141, 812486);
|
| 6 |
121.80 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
386456
403588
417493
417660
418572
418574
425821
432707
434829
436235
438067
443987
444194
452251
452659
453875
455804
464193
464857
466230
466739
469756
476887
478707
487605
496813
498345
500758
501682
507876
508796
510404
510498
510769
511791
520632
521637
521785
522383
522975
523430
525190
525349
525612
525881
526118
526492
526908
526912
527706
527738
528445
532644
539286
541776
550587
551617
552991
555127
560048
566047
566122
567053
567756
568283
569431
584511
590526
590670
591394
594830
596497
597282
598644
599950
602006
603911
614673
615145
618534
627139
627632
628273
633047
643517
659216
661510
699409
714468
744704
766141
812486
]
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 (386456, 403588, 417493, 417660, 418572, 418574, 425821, 432707, 434829, 436235, 438067, 443987, 444194, 452251, 452659, 453875, 455804, 464193, 464857, 466230, 466739, 469756, 476887, 478707, 487605, 496813, 498345, 500758, 501682, 507876, 508796, 510404, 510498, 510769, 511791, 520632, 521637, 521785, 522383, 522975, 523430, 525190, 525349, 525612, 525881, 526118, 526492, 526908, 526912, 527706, 527738, 528445, 532644, 539286, 541776, 550587, 551617, 552991, 555127, 560048, 566047, 566122, 567053, 567756, 568283, 569431, 584511, 590526, 590670, 591394, 594830, 596497, 597282, 598644, 599950, 602006, 603911, 614673, 615145, 618534, 627139, 627632, 628273, 633047, 643517, 659216, 661510, 699409, 714468, 744704, 766141, 812486);
|