110.95 ms (81.44%)
|
1 |
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
435602
441853
448570
457550
460015
464494
465066
507879
508580
528545
540927
544037
554674
555988
556115
556314
557613
560046
560188
560690
565480
569283
569313
574403
577661
578010
579585
579810
580366
580768
580921
581741
583757
583966
584009
584099
585907
586218
586810
588140
588760
589667
594179
594549
595209
596429
596522
602180
605108
605697
609161
615925
617047
618301
618803
628582
628714
630461
631470
636461
636656
639853
664595
692767
703192
710221
729567
731378
731681
768675
782094
800429
802339
]
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 (435602, 441853, 448570, 457550, 460015, 464494, 465066, 507879, 508580, 528545, 540927, 544037, 554674, 555988, 556115, 556314, 557613, 560046, 560188, 560690, 565480, 569283, 569313, 574403, 577661, 578010, 579585, 579810, 580366, 580768, 580921, 581741, 583757, 583966, 584009, 584099, 585907, 586218, 586810, 588140, 588760, 589667, 594179, 594549, 595209, 596429, 596522, 602180, 605108, 605697, 609161, 615925, 617047, 618301, 618803, 628582, 628714, 630461, 631470, 636461, 636656, 639853, 664595, 692767, 703192, 710221, 729567, 731378, 731681, 768675, 782094, 800429, 802339);
|
12.64 ms (9.28%)
|
1 |
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
581741
554674
588140
602180
589667
605697
729567
800429
768675
782094
802339
460015
528545
464494
560046
565480
540927
574403
580366
664595
618301
628714
636656
639853
585907
596429
596522
731681
631470
457550
555988
578010
507879
579810
583757
556314
569283
584099
544037
556115
557613
577661
584009
703192
692767
710221
586218
586810
588760
636461
618803
630461
617047
731378
605108
435602
579585
560690
580921
628582
594179
465066
580768
583966
594549
615925
595209
448570
508580
609161
569313
560188
441853
]
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 (581741, 554674, 588140, 602180, 589667, 605697, 729567, 800429, 768675, 782094, 802339, 460015, 528545, 464494, 560046, 565480, 540927, 574403, 580366, 664595, 618301, 628714, 636656, 639853, 585907, 596429, 596522, 731681, 631470, 457550, 555988, 578010, 507879, 579810, 583757, 556314, 569283, 584099, 544037, 556115, 557613, 577661, 584009, 703192, 692767, 710221, 586218, 586810, 588760, 636461, 618803, 630461, 617047, 731378, 605108, 435602, 579585, 560690, 580921, 628582, 594179, 465066, 580768, 583966, 594549, 615925, 595209, 448570, 508580, 609161, 569313, 560188, 441853);
|
3.11 ms (2.28%)
|
1 |
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
435602
441853
448570
457550
460015
464494
465066
507879
508580
528545
540927
544037
554674
555988
556115
556314
557613
560046
560188
560690
565480
569283
569313
574403
577661
578010
579585
579810
580366
580768
580921
581741
583757
583966
584009
584099
585907
586218
586810
588140
588760
589667
594179
594549
595209
596429
596522
602180
605108
605697
609161
615925
617047
618301
618803
628582
628714
630461
631470
636461
636656
639853
664595
692767
703192
710221
729567
731378
731681
768675
782094
800429
802339
]
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 (435602, 441853, 448570, 457550, 460015, 464494, 465066, 507879, 508580, 528545, 540927, 544037, 554674, 555988, 556115, 556314, 557613, 560046, 560188, 560690, 565480, 569283, 569313, 574403, 577661, 578010, 579585, 579810, 580366, 580768, 580921, 581741, 583757, 583966, 584009, 584099, 585907, 586218, 586810, 588140, 588760, 589667, 594179, 594549, 595209, 596429, 596522, 602180, 605108, 605697, 609161, 615925, 617047, 618301, 618803, 628582, 628714, 630461, 631470, 636461, 636656, 639853, 664595, 692767, 703192, 710221, 729567, 731378, 731681, 768675, 782094, 800429, 802339);
|