72.29 ms (66.99%)
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
385082
401507
427494
429565
435645
435648
468666
492732
493046
515749
524178
527484
530363
535093
542518
550796
550882
552638
556362
556383
556412
557823
558425
558444
559875
565995
565999
566001
579632
579721
580609
588242
594570
596984
598515
601101
606688
606699
606910
607025
619417
623822
628143
628175
632727
633855
638544
651010
651591
685814
702075
712222
717274
717278
718309
721946
743458
747956
749807
758860
784624
803450
804796
815151
816259
820757
825019
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
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 (385082 , 401507 , 427494 , 429565 , 435645 , 435648 , 468666 , 492732 , 493046 , 515749 , 524178 , 527484 , 530363 , 535093 , 542518 , 550796 , 550882 , 552638 , 556362 , 556383 , 556412 , 557823 , 558425 , 558444 , 559875 , 565995 , 565999 , 566001 , 579632 , 579721 , 580609 , 588242 , 594570 , 596984 , 598515 , 601101 , 606688 , 606699 , 606910 , 607025 , 619417 , 623822 , 628143 , 628175 , 632727 , 633855 , 638544 , 651010 , 651591 , 685814 , 702075 , 712222 , 717274 , 717278 , 718309 , 721946 , 743458 , 747956 , 749807 , 758860 , 784624 , 803450 , 804796 , 815151 , 816259 , 820757 , 825019 );
Copy
9.13 ms (8.46%)
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
749807
401507
820757
579632
747956
552638
651010
492732
685814
606688
556362
579721
803450
435645
429565
515749
556383
712222
628143
565999
758860
385082
559875
632727
566001
556412
606699
717274
542518
598515
623822
718309
557823
619417
530363
651591
743458
427494
524178
702075
535093
638544
435648
815151
607025
721946
588242
565995
550796
558425
558444
580609
784624
596984
825019
816259
606910
804796
527484
628175
633855
594570
468666
717278
493046
550882
601101
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
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 (749807 , 401507 , 820757 , 579632 , 747956 , 552638 , 651010 , 492732 , 685814 , 606688 , 556362 , 579721 , 803450 , 435645 , 429565 , 515749 , 556383 , 712222 , 628143 , 565999 , 758860 , 385082 , 559875 , 632727 , 566001 , 556412 , 606699 , 717274 , 542518 , 598515 , 623822 , 718309 , 557823 , 619417 , 530363 , 651591 , 743458 , 427494 , 524178 , 702075 , 535093 , 638544 , 435648 , 815151 , 607025 , 721946 , 588242 , 565995 , 550796 , 558425 , 558444 , 580609 , 784624 , 596984 , 825019 , 816259 , 606910 , 804796 , 527484 , 628175 , 633855 , 594570 , 468666 , 717278 , 493046 , 550882 , 601101 );
Copy
2.44 ms (2.26%)
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
385082
401507
427494
429565
435645
435648
468666
492732
493046
515749
524178
527484
530363
535093
542518
550796
550882
552638
556362
556383
556412
557823
558425
558444
559875
565995
565999
566001
579632
579721
580609
588242
594570
596984
598515
601101
606688
606699
606910
607025
619417
623822
628143
628175
632727
633855
638544
651010
651591
685814
702075
712222
717274
717278
718309
721946
743458
747956
749807
758860
784624
803450
804796
815151
816259
820757
825019
]
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 (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
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 (385082 , 401507 , 427494 , 429565 , 435645 , 435648 , 468666 , 492732 , 493046 , 515749 , 524178 , 527484 , 530363 , 535093 , 542518 , 550796 , 550882 , 552638 , 556362 , 556383 , 556412 , 557823 , 558425 , 558444 , 559875 , 565995 , 565999 , 566001 , 579632 , 579721 , 580609 , 588242 , 594570 , 596984 , 598515 , 601101 , 606688 , 606699 , 606910 , 607025 , 619417 , 623822 , 628143 , 628175 , 632727 , 633855 , 638544 , 651010 , 651591 , 685814 , 702075 , 712222 , 717274 , 717278 , 718309 , 721946 , 743458 , 747956 , 749807 , 758860 , 784624 , 803450 , 804796 , 815151 , 816259 , 820757 , 825019 );
Copy