| 3 |
13.36 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
494672
503739
573939
441414
518231
521048
519597
485507
492459
503754
508145
508168
567725
547824
556222
425749
481290
453875
508377
492466
507584
595907
440962
522980
524432
439516
587235
752700
503388
517985
513953
606567
454341
476902
714748
527222
469030
451303
518852
473788
459358
486870
463614
507902
611477
561515
582350
529234
563580
616933
529130
584634
555182
516854
535684
724493
515794
590599
584521
608111
608203
609225
613359
538027
555179
568062
608737
601485
469649
528116
571027
621705
611655
514782
421287
552029
562258
617165
603875
]
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 (494672, 503739, 573939, 441414, 518231, 521048, 519597, 485507, 492459, 503754, 508145, 508168, 567725, 547824, 556222, 425749, 481290, 453875, 508377, 492466, 507584, 595907, 440962, 522980, 524432, 439516, 587235, 752700, 503388, 517985, 513953, 606567, 454341, 476902, 714748, 527222, 469030, 451303, 518852, 473788, 459358, 486870, 463614, 507902, 611477, 561515, 582350, 529234, 563580, 616933, 529130, 584634, 555182, 516854, 535684, 724493, 515794, 590599, 584521, 608111, 608203, 609225, 613359, 538027, 555179, 568062, 608737, 601485, 469649, 528116, 571027, 621705, 611655, 514782, 421287, 552029, 562258, 617165, 603875);
|
| 4 |
2.45 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
421287
425749
439516
440962
441414
451303
453875
454341
459358
463614
469030
469649
473788
476902
481290
485507
486870
492459
492466
494672
503388
503739
503754
507584
507902
508145
508168
508377
513953
514782
515794
516854
517985
518231
518852
519597
521048
522980
524432
527222
528116
529130
529234
535684
538027
547824
552029
555179
555182
556222
561515
562258
563580
567725
568062
571027
573939
582350
584521
584634
587235
590599
595907
601485
603875
606567
608111
608203
608737
609225
611477
611655
613359
616933
617165
621705
714748
724493
752700
]
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 (421287, 425749, 439516, 440962, 441414, 451303, 453875, 454341, 459358, 463614, 469030, 469649, 473788, 476902, 481290, 485507, 486870, 492459, 492466, 494672, 503388, 503739, 503754, 507584, 507902, 508145, 508168, 508377, 513953, 514782, 515794, 516854, 517985, 518231, 518852, 519597, 521048, 522980, 524432, 527222, 528116, 529130, 529234, 535684, 538027, 547824, 552029, 555179, 555182, 556222, 561515, 562258, 563580, 567725, 568062, 571027, 573939, 582350, 584521, 584634, 587235, 590599, 595907, 601485, 603875, 606567, 608111, 608203, 608737, 609225, 611477, 611655, 613359, 616933, 617165, 621705, 714748, 724493, 752700);
|
| 5 |
158.57 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
421287
425749
439516
440962
441414
451303
453875
454341
459358
463614
469030
469649
473788
476902
481290
485507
486870
492459
492466
494672
503388
503739
503754
507584
507902
508145
508168
508377
513953
514782
515794
516854
517985
518231
518852
519597
521048
522980
524432
527222
528116
529130
529234
535684
538027
547824
552029
555179
555182
556222
561515
562258
563580
567725
568062
571027
573939
582350
584521
584634
587235
590599
595907
601485
603875
606567
608111
608203
608737
609225
611477
611655
613359
616933
617165
621705
714748
724493
752700
]
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 (421287, 425749, 439516, 440962, 441414, 451303, 453875, 454341, 459358, 463614, 469030, 469649, 473788, 476902, 481290, 485507, 486870, 492459, 492466, 494672, 503388, 503739, 503754, 507584, 507902, 508145, 508168, 508377, 513953, 514782, 515794, 516854, 517985, 518231, 518852, 519597, 521048, 522980, 524432, 527222, 528116, 529130, 529234, 535684, 538027, 547824, 552029, 555179, 555182, 556222, 561515, 562258, 563580, 567725, 568062, 571027, 573939, 582350, 584521, 584634, 587235, 590599, 595907, 601485, 603875, 606567, 608111, 608203, 608737, 609225, 611477, 611655, 613359, 616933, 617165, 621705, 714748, 724493, 752700);
|