| 4 |
14.10 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
581816
596437
596534
596551
614041
596555
629630
596421
596431
813244
415388
466075
472142
488011
495112
508735
519504
512620
498306
516249
525946
430625
438765
482632
448842
493165
446735
471616
474655
446739
468955
518406
493222
550976
565317
619777
598279
590867
603241
410935
474923
425625
468941
528181
492323
502422
466994
477355
495392
679314
590893
596571
637537
595905
596424
404876
421254
484706
505814
383616
434553
501710
535011
554905
584488
596526
590405
620712
617431
476797
497865
514648
560215
562894
585698
593150
590910
596467
596515
407597
483328
489950
529290
567156
596500
591284
596423
520803
599988
573314
]
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 (581816, 596437, 596534, 596551, 614041, 596555, 629630, 596421, 596431, 813244, 415388, 466075, 472142, 488011, 495112, 508735, 519504, 512620, 498306, 516249, 525946, 430625, 438765, 482632, 448842, 493165, 446735, 471616, 474655, 446739, 468955, 518406, 493222, 550976, 565317, 619777, 598279, 590867, 603241, 410935, 474923, 425625, 468941, 528181, 492323, 502422, 466994, 477355, 495392, 679314, 590893, 596571, 637537, 595905, 596424, 404876, 421254, 484706, 505814, 383616, 434553, 501710, 535011, 554905, 584488, 596526, 590405, 620712, 617431, 476797, 497865, 514648, 560215, 562894, 585698, 593150, 590910, 596467, 596515, 407597, 483328, 489950, 529290, 567156, 596500, 591284, 596423, 520803, 599988, 573314);
|
| 5 |
2.20 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
383616
404876
407597
410935
415388
421254
425625
430625
434553
438765
446735
446739
448842
466075
466994
468941
468955
471616
472142
474655
474923
476797
477355
482632
483328
484706
488011
489950
492323
493165
493222
495112
495392
497865
498306
501710
502422
505814
508735
512620
514648
516249
518406
519504
520803
525946
528181
529290
535011
550976
554905
560215
562894
565317
567156
573314
581816
584488
585698
590405
590867
590893
590910
591284
593150
595905
596421
596423
596424
596431
596437
596467
596500
596515
596526
596534
596551
596555
596571
598279
599988
603241
614041
617431
619777
620712
629630
637537
679314
813244
]
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 (383616, 404876, 407597, 410935, 415388, 421254, 425625, 430625, 434553, 438765, 446735, 446739, 448842, 466075, 466994, 468941, 468955, 471616, 472142, 474655, 474923, 476797, 477355, 482632, 483328, 484706, 488011, 489950, 492323, 493165, 493222, 495112, 495392, 497865, 498306, 501710, 502422, 505814, 508735, 512620, 514648, 516249, 518406, 519504, 520803, 525946, 528181, 529290, 535011, 550976, 554905, 560215, 562894, 565317, 567156, 573314, 581816, 584488, 585698, 590405, 590867, 590893, 590910, 591284, 593150, 595905, 596421, 596423, 596424, 596431, 596437, 596467, 596500, 596515, 596526, 596534, 596551, 596555, 596571, 598279, 599988, 603241, 614041, 617431, 619777, 620712, 629630, 637537, 679314, 813244);
|
| 6 |
115.39 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
383616
404876
407597
410935
415388
421254
425625
430625
434553
438765
446735
446739
448842
466075
466994
468941
468955
471616
472142
474655
474923
476797
477355
482632
483328
484706
488011
489950
492323
493165
493222
495112
495392
497865
498306
501710
502422
505814
508735
512620
514648
516249
518406
519504
520803
525946
528181
529290
535011
550976
554905
560215
562894
565317
567156
573314
581816
584488
585698
590405
590867
590893
590910
591284
593150
595905
596421
596423
596424
596431
596437
596467
596500
596515
596526
596534
596551
596555
596571
598279
599988
603241
614041
617431
619777
620712
629630
637537
679314
813244
]
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 (383616, 404876, 407597, 410935, 415388, 421254, 425625, 430625, 434553, 438765, 446735, 446739, 448842, 466075, 466994, 468941, 468955, 471616, 472142, 474655, 474923, 476797, 477355, 482632, 483328, 484706, 488011, 489950, 492323, 493165, 493222, 495112, 495392, 497865, 498306, 501710, 502422, 505814, 508735, 512620, 514648, 516249, 518406, 519504, 520803, 525946, 528181, 529290, 535011, 550976, 554905, 560215, 562894, 565317, 567156, 573314, 581816, 584488, 585698, 590405, 590867, 590893, 590910, 591284, 593150, 595905, 596421, 596423, 596424, 596431, 596437, 596467, 596500, 596515, 596526, 596534, 596551, 596555, 596571, 598279, 599988, 603241, 614041, 617431, 619777, 620712, 629630, 637537, 679314, 813244);
|