100.14 ms (70.57%)
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
389497
394346
400128
400156
400237
413890
417339
424996
430210
445501
446984
448092
460002
473557
478400
479449
483216
483224
504176
504529
505161
508743
535775
539611
554808
555971
556024
558379
558876
559658
565631
567014
567716
570405
574128
584160
586508
588255
601364
606681
615438
624265
624661
624662
625140
625855
645081
650545
650648
668789
672252
682071
706660
716762
718050
719989
730374
742270
744926
792034
800931
827608
827869
]
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 (389497 , 394346 , 400128 , 400156 , 400237 , 413890 , 417339 , 424996 , 430210 , 445501 , 446984 , 448092 , 460002 , 473557 , 478400 , 479449 , 483216 , 483224 , 504176 , 504529 , 505161 , 508743 , 535775 , 539611 , 554808 , 555971 , 556024 , 558379 , 558876 , 559658 , 565631 , 567014 , 567716 , 570405 , 574128 , 584160 , 586508 , 588255 , 601364 , 606681 , 615438 , 624265 , 624661 , 624662 , 625140 , 625855 , 645081 , 650545 , 650648 , 668789 , 672252 , 682071 , 706660 , 716762 , 718050 , 719989 , 730374 , 742270 , 744926 , 792034 , 800931 , 827608 , 827869 );
Copy
10.75 ms (7.58%)
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
394346
827869
827608
389497
624265
624662
558876
668789
742270
719989
400156
584160
650545
792034
672252
555971
718050
413890
535775
565631
539611
554808
504529
558379
706660
574128
730374
460002
682071
650648
625855
744926
716762
448092
473557
479449
645081
800931
483224
424996
478400
508743
400128
559658
567014
570405
586508
615438
445501
483216
417339
624661
505161
588255
504176
601364
606681
400237
567716
556024
625140
446984
430210
]
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 (394346 , 827869 , 827608 , 389497 , 624265 , 624662 , 558876 , 668789 , 742270 , 719989 , 400156 , 584160 , 650545 , 792034 , 672252 , 555971 , 718050 , 413890 , 535775 , 565631 , 539611 , 554808 , 504529 , 558379 , 706660 , 574128 , 730374 , 460002 , 682071 , 650648 , 625855 , 744926 , 716762 , 448092 , 473557 , 479449 , 645081 , 800931 , 483224 , 424996 , 478400 , 508743 , 400128 , 559658 , 567014 , 570405 , 586508 , 615438 , 445501 , 483216 , 417339 , 624661 , 505161 , 588255 , 504176 , 601364 , 606681 , 400237 , 567716 , 556024 , 625140 , 446984 , 430210 );
Copy
2.87 ms (2.02%)
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
389497
394346
400128
400156
400237
413890
417339
424996
430210
445501
446984
448092
460002
473557
478400
479449
483216
483224
504176
504529
505161
508743
535775
539611
554808
555971
556024
558379
558876
559658
565631
567014
567716
570405
574128
584160
586508
588255
601364
606681
615438
624265
624661
624662
625140
625855
645081
650545
650648
668789
672252
682071
706660
716762
718050
719989
730374
742270
744926
792034
800931
827608
827869
]
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 (389497 , 394346 , 400128 , 400156 , 400237 , 413890 , 417339 , 424996 , 430210 , 445501 , 446984 , 448092 , 460002 , 473557 , 478400 , 479449 , 483216 , 483224 , 504176 , 504529 , 505161 , 508743 , 535775 , 539611 , 554808 , 555971 , 556024 , 558379 , 558876 , 559658 , 565631 , 567014 , 567716 , 570405 , 574128 , 584160 , 586508 , 588255 , 601364 , 606681 , 615438 , 624265 , 624661 , 624662 , 625140 , 625855 , 645081 , 650545 , 650648 , 668789 , 672252 , 682071 , 706660 , 716762 , 718050 , 719989 , 730374 , 742270 , 744926 , 792034 , 800931 , 827608 , 827869 );
Copy