| 3 |
13.50 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
767601
604387
631193
633806
474621
468628
536645
583714
745384
521089
446167
468010
521850
545803
562391
678159
589524
460706
637123
417829
448817
516291
604528
414075
485149
634115
420192
457165
536752
545801
666876
637121
623198
478527
637074
585139
576720
631984
634153
496270
527106
647932
639798
639716
415883
492064
448810
566786
508518
489328
457160
539232
632635
520775
620205
480419
545611
547241
639732
449123
531560
506612
556037
647972
665768
455898
559959
634780
483550
527273
519392
533746
558432
]
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 (767601, 604387, 631193, 633806, 474621, 468628, 536645, 583714, 745384, 521089, 446167, 468010, 521850, 545803, 562391, 678159, 589524, 460706, 637123, 417829, 448817, 516291, 604528, 414075, 485149, 634115, 420192, 457165, 536752, 545801, 666876, 637121, 623198, 478527, 637074, 585139, 576720, 631984, 634153, 496270, 527106, 647932, 639798, 639716, 415883, 492064, 448810, 566786, 508518, 489328, 457160, 539232, 632635, 520775, 620205, 480419, 545611, 547241, 639732, 449123, 531560, 506612, 556037, 647972, 665768, 455898, 559959, 634780, 483550, 527273, 519392, 533746, 558432);
|
| 4 |
3.63 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
414075
415883
417829
420192
446167
448810
448817
449123
455898
457160
457165
460706
468010
468628
474621
478527
480419
483550
485149
489328
492064
496270
506612
508518
516291
519392
520775
521089
521850
527106
527273
531560
533746
536645
536752
539232
545611
545801
545803
547241
556037
558432
559959
562391
566786
576720
583714
585139
589524
604387
604528
620205
623198
631193
631984
632635
633806
634115
634153
634780
637074
637121
637123
639716
639732
639798
647932
647972
665768
666876
678159
745384
767601
]
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 (414075, 415883, 417829, 420192, 446167, 448810, 448817, 449123, 455898, 457160, 457165, 460706, 468010, 468628, 474621, 478527, 480419, 483550, 485149, 489328, 492064, 496270, 506612, 508518, 516291, 519392, 520775, 521089, 521850, 527106, 527273, 531560, 533746, 536645, 536752, 539232, 545611, 545801, 545803, 547241, 556037, 558432, 559959, 562391, 566786, 576720, 583714, 585139, 589524, 604387, 604528, 620205, 623198, 631193, 631984, 632635, 633806, 634115, 634153, 634780, 637074, 637121, 637123, 639716, 639732, 639798, 647932, 647972, 665768, 666876, 678159, 745384, 767601);
|
| 5 |
86.97 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
414075
415883
417829
420192
446167
448810
448817
449123
455898
457160
457165
460706
468010
468628
474621
478527
480419
483550
485149
489328
492064
496270
506612
508518
516291
519392
520775
521089
521850
527106
527273
531560
533746
536645
536752
539232
545611
545801
545803
547241
556037
558432
559959
562391
566786
576720
583714
585139
589524
604387
604528
620205
623198
631193
631984
632635
633806
634115
634153
634780
637074
637121
637123
639716
639732
639798
647932
647972
665768
666876
678159
745384
767601
]
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 (414075, 415883, 417829, 420192, 446167, 448810, 448817, 449123, 455898, 457160, 457165, 460706, 468010, 468628, 474621, 478527, 480419, 483550, 485149, 489328, 492064, 496270, 506612, 508518, 516291, 519392, 520775, 521089, 521850, 527106, 527273, 531560, 533746, 536645, 536752, 539232, 545611, 545801, 545803, 547241, 556037, 558432, 559959, 562391, 566786, 576720, 583714, 585139, 589524, 604387, 604528, 620205, 623198, 631193, 631984, 632635, 633806, 634115, 634153, 634780, 637074, 637121, 637123, 639716, 639732, 639798, 647932, 647972, 665768, 666876, 678159, 745384, 767601);
|