67.18 ms (68.32%)
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
427714
438978
440980
441314
441683
444911
451082
457765
480912
494068
507638
521481
525884
528143
528144
534816
535207
549661
561909
563363
565937
568726
581478
599427
599476
604699
625839
630448
651768
671396
673874
678696
685832
696145
696149
697256
733368
752557
752585
757128
764728
765042
765887
775646
776018
776824
783215
784743
786124
791500
792441
792973
796472
801820
802827
804205
809731
810904
813928
824230
824860
825517
]
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 (427714 , 438978 , 440980 , 441314 , 441683 , 444911 , 451082 , 457765 , 480912 , 494068 , 507638 , 521481 , 525884 , 528143 , 528144 , 534816 , 535207 , 549661 , 561909 , 563363 , 565937 , 568726 , 581478 , 599427 , 599476 , 604699 , 625839 , 630448 , 651768 , 671396 , 673874 , 678696 , 685832 , 696145 , 696149 , 697256 , 733368 , 752557 , 752585 , 757128 , 764728 , 765042 , 765887 , 775646 , 776018 , 776824 , 783215 , 784743 , 786124 , 791500 , 792441 , 792973 , 796472 , 801820 , 802827 , 804205 , 809731 , 810904 , 813928 , 824230 , 824860 , 825517 );
Copy
8.46 ms (8.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
630448
651768
444911
494068
825517
696149
733368
696145
765042
824230
792973
804205
786124
801820
776018
809731
813928
775646
810904
752557
752585
824860
535207
697256
599427
673874
685832
776824
796472
791500
764728
784743
792441
765887
625839
783215
441683
549661
678696
604699
757128
802827
480912
441314
427714
451082
457765
671396
599476
438978
563363
581478
561909
534816
521481
528144
568726
565937
440980
528143
507638
525884
]
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 (630448 , 651768 , 444911 , 494068 , 825517 , 696149 , 733368 , 696145 , 765042 , 824230 , 792973 , 804205 , 786124 , 801820 , 776018 , 809731 , 813928 , 775646 , 810904 , 752557 , 752585 , 824860 , 535207 , 697256 , 599427 , 673874 , 685832 , 776824 , 796472 , 791500 , 764728 , 784743 , 792441 , 765887 , 625839 , 783215 , 441683 , 549661 , 678696 , 604699 , 757128 , 802827 , 480912 , 441314 , 427714 , 451082 , 457765 , 671396 , 599476 , 438978 , 563363 , 581478 , 561909 , 534816 , 521481 , 528144 , 568726 , 565937 , 440980 , 528143 , 507638 , 525884 );
Copy
2.10 ms (2.14%)
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
427714
438978
440980
441314
441683
444911
451082
457765
480912
494068
507638
521481
525884
528143
528144
534816
535207
549661
561909
563363
565937
568726
581478
599427
599476
604699
625839
630448
651768
671396
673874
678696
685832
696145
696149
697256
733368
752557
752585
757128
764728
765042
765887
775646
776018
776824
783215
784743
786124
791500
792441
792973
796472
801820
802827
804205
809731
810904
813928
824230
824860
825517
]
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 (427714 , 438978 , 440980 , 441314 , 441683 , 444911 , 451082 , 457765 , 480912 , 494068 , 507638 , 521481 , 525884 , 528143 , 528144 , 534816 , 535207 , 549661 , 561909 , 563363 , 565937 , 568726 , 581478 , 599427 , 599476 , 604699 , 625839 , 630448 , 651768 , 671396 , 673874 , 678696 , 685832 , 696145 , 696149 , 697256 , 733368 , 752557 , 752585 , 757128 , 764728 , 765042 , 765887 , 775646 , 776018 , 776824 , 783215 , 784743 , 786124 , 791500 , 792441 , 792973 , 796472 , 801820 , 802827 , 804205 , 809731 , 810904 , 813928 , 824230 , 824860 , 825517 );
Copy