114.56 ms (79.97%)
|
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
389208
401919
420726
421323
436032
439649
457793
469764
472750
475971
476108
476797
478562
482527
484829
486270
486434
488734
494978
497871
500904
508523
513338
515538
516350
516424
517869
518243
523183
526104
531201
532676
535016
540910
544800
552120
558626
575810
578587
582277
582540
586591
588265
590505
591312
595791
596437
598105
599888
601414
601583
605374
609915
611558
614752
615881
623380
632614
634472
634487
637049
639796
641141
645238
647932
648853
659215
659258
662137
674994
675296
676089
678791
698133
701010
701348
775070
]
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 (389208, 401919, 420726, 421323, 436032, 439649, 457793, 469764, 472750, 475971, 476108, 476797, 478562, 482527, 484829, 486270, 486434, 488734, 494978, 497871, 500904, 508523, 513338, 515538, 516350, 516424, 517869, 518243, 523183, 526104, 531201, 532676, 535016, 540910, 544800, 552120, 558626, 575810, 578587, 582277, 582540, 586591, 588265, 590505, 591312, 595791, 596437, 598105, 599888, 601414, 601583, 605374, 609915, 611558, 614752, 615881, 623380, 632614, 634472, 634487, 637049, 639796, 641141, 645238, 647932, 648853, 659215, 659258, 662137, 674994, 675296, 676089, 678791, 698133, 701010, 701348, 775070);
|
16.63 ms (11.61%)
|
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
540910
558626
678791
659215
596437
478562
420726
486434
518243
632614
599888
552120
645238
634487
641141
475971
469764
515538
476108
578587
591312
605374
517869
601414
775070
648853
701348
623380
486270
421323
532676
575810
701010
389208
439649
516350
662137
586591
488734
582277
647932
639796
523183
614752
484829
675296
659258
476797
401919
676089
582540
634472
601583
436032
457793
513338
494978
482527
531201
508523
611558
637049
500904
544800
698133
497871
516424
674994
615881
535016
588265
526104
472750
595791
609915
598105
590505
]
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 (540910, 558626, 678791, 659215, 596437, 478562, 420726, 486434, 518243, 632614, 599888, 552120, 645238, 634487, 641141, 475971, 469764, 515538, 476108, 578587, 591312, 605374, 517869, 601414, 775070, 648853, 701348, 623380, 486270, 421323, 532676, 575810, 701010, 389208, 439649, 516350, 662137, 586591, 488734, 582277, 647932, 639796, 523183, 614752, 484829, 675296, 659258, 476797, 401919, 676089, 582540, 634472, 601583, 436032, 457793, 513338, 494978, 482527, 531201, 508523, 611558, 637049, 500904, 544800, 698133, 497871, 516424, 674994, 615881, 535016, 588265, 526104, 472750, 595791, 609915, 598105, 590505);
|
2.93 ms (2.05%)
|
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
389208
401919
420726
421323
436032
439649
457793
469764
472750
475971
476108
476797
478562
482527
484829
486270
486434
488734
494978
497871
500904
508523
513338
515538
516350
516424
517869
518243
523183
526104
531201
532676
535016
540910
544800
552120
558626
575810
578587
582277
582540
586591
588265
590505
591312
595791
596437
598105
599888
601414
601583
605374
609915
611558
614752
615881
623380
632614
634472
634487
637049
639796
641141
645238
647932
648853
659215
659258
662137
674994
675296
676089
678791
698133
701010
701348
775070
]
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 (389208, 401919, 420726, 421323, 436032, 439649, 457793, 469764, 472750, 475971, 476108, 476797, 478562, 482527, 484829, 486270, 486434, 488734, 494978, 497871, 500904, 508523, 513338, 515538, 516350, 516424, 517869, 518243, 523183, 526104, 531201, 532676, 535016, 540910, 544800, 552120, 558626, 575810, 578587, 582277, 582540, 586591, 588265, 590505, 591312, 595791, 596437, 598105, 599888, 601414, 601583, 605374, 609915, 611558, 614752, 615881, 623380, 632614, 634472, 634487, 637049, 639796, 641141, 645238, 647932, 648853, 659215, 659258, 662137, 674994, 675296, 676089, 678791, 698133, 701010, 701348, 775070);
|