| 4 |
9.80 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
383980
724081
737132
770587
772732
752470
809887
476276
725101
763529
693371
608652
734293
763447
782319
756706
605757
605872
779703
770856
188254
775789
638792
795390
610026
503183
807444
738845
718991
600712
555434
522752
562994
482925
535532
598007
724762
699069
447333
616338
581896
11991
595639
567013
424077
519450
740103
430244
808804
464217
541400
677355
603928
425021
487974
527270
514935
607277
621375
470017
556941
561481
543461
419758
589591
514996
584358
650844
503552
502744
543186
625167
433888
481878
516324
641418
434192
508269
590256
402683
561410
]
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 (383980, 724081, 737132, 770587, 772732, 752470, 809887, 476276, 725101, 763529, 693371, 608652, 734293, 763447, 782319, 756706, 605757, 605872, 779703, 770856, 188254, 775789, 638792, 795390, 610026, 503183, 807444, 738845, 718991, 600712, 555434, 522752, 562994, 482925, 535532, 598007, 724762, 699069, 447333, 616338, 581896, 11991, 595639, 567013, 424077, 519450, 740103, 430244, 808804, 464217, 541400, 677355, 603928, 425021, 487974, 527270, 514935, 607277, 621375, 470017, 556941, 561481, 543461, 419758, 589591, 514996, 584358, 650844, 503552, 502744, 543186, 625167, 433888, 481878, 516324, 641418, 434192, 508269, 590256, 402683, 561410);
|
| 5 |
2.50 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
11991
188254
383980
402683
419758
424077
425021
430244
433888
434192
447333
464217
470017
476276
481878
482925
487974
502744
503183
503552
508269
514935
514996
516324
519450
522752
527270
535532
541400
543186
543461
555434
556941
561410
561481
562994
567013
581896
584358
589591
590256
595639
598007
600712
603928
605757
605872
607277
608652
610026
616338
621375
625167
638792
641418
650844
677355
693371
699069
718991
724081
724762
725101
734293
737132
738845
740103
752470
756706
763447
763529
770587
770856
772732
775789
779703
782319
795390
807444
808804
809887
]
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 (11991, 188254, 383980, 402683, 419758, 424077, 425021, 430244, 433888, 434192, 447333, 464217, 470017, 476276, 481878, 482925, 487974, 502744, 503183, 503552, 508269, 514935, 514996, 516324, 519450, 522752, 527270, 535532, 541400, 543186, 543461, 555434, 556941, 561410, 561481, 562994, 567013, 581896, 584358, 589591, 590256, 595639, 598007, 600712, 603928, 605757, 605872, 607277, 608652, 610026, 616338, 621375, 625167, 638792, 641418, 650844, 677355, 693371, 699069, 718991, 724081, 724762, 725101, 734293, 737132, 738845, 740103, 752470, 756706, 763447, 763529, 770587, 770856, 772732, 775789, 779703, 782319, 795390, 807444, 808804, 809887);
|
| 6 |
151.17 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
11991
188254
383980
402683
419758
424077
425021
430244
433888
434192
447333
464217
470017
476276
481878
482925
487974
502744
503183
503552
508269
514935
514996
516324
519450
522752
527270
535532
541400
543186
543461
555434
556941
561410
561481
562994
567013
581896
584358
589591
590256
595639
598007
600712
603928
605757
605872
607277
608652
610026
616338
621375
625167
638792
641418
650844
677355
693371
699069
718991
724081
724762
725101
734293
737132
738845
740103
752470
756706
763447
763529
770587
770856
772732
775789
779703
782319
795390
807444
808804
809887
]
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 (11991, 188254, 383980, 402683, 419758, 424077, 425021, 430244, 433888, 434192, 447333, 464217, 470017, 476276, 481878, 482925, 487974, 502744, 503183, 503552, 508269, 514935, 514996, 516324, 519450, 522752, 527270, 535532, 541400, 543186, 543461, 555434, 556941, 561410, 561481, 562994, 567013, 581896, 584358, 589591, 590256, 595639, 598007, 600712, 603928, 605757, 605872, 607277, 608652, 610026, 616338, 621375, 625167, 638792, 641418, 650844, 677355, 693371, 699069, 718991, 724081, 724762, 725101, 734293, 737132, 738845, 740103, 752470, 756706, 763447, 763529, 770587, 770856, 772732, 775789, 779703, 782319, 795390, 807444, 808804, 809887);
|