3
7.40 ms
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
758648
736353
760923
735614
739855
749704
751432
719277
625599
796950
800497
804862
773327
728802
769143
731471
799895
776713
777631
761495
773906
738636
745716
761481
769312
747885
750241
769567
749243
752605
775705
788843
789776
792645
767220
760443
792552
766831
811808
775178
780718
795377
769882
758026
715460
777306
792088
748046
751428
787624
808728
812278
758788
736706
770264
738625
795396
750531
725622
735685
780784
763522
788115
803557
782450
779840
740920
763398
790392
473500
770382
545801
621516
727052
545831
]
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 (758648 , 736353 , 760923 , 735614 , 739855 , 749704 , 751432 , 719277 , 625599 , 796950 , 800497 , 804862 , 773327 , 728802 , 769143 , 731471 , 799895 , 776713 , 777631 , 761495 , 773906 , 738636 , 745716 , 761481 , 769312 , 747885 , 750241 , 769567 , 749243 , 752605 , 775705 , 788843 , 789776 , 792645 , 767220 , 760443 , 792552 , 766831 , 811808 , 775178 , 780718 , 795377 , 769882 , 758026 , 715460 , 777306 , 792088 , 748046 , 751428 , 787624 , 808728 , 812278 , 758788 , 736706 , 770264 , 738625 , 795396 , 750531 , 725622 , 735685 , 780784 , 763522 , 788115 , 803557 , 782450 , 779840 , 740920 , 763398 , 790392 , 473500 , 770382 , 545801 , 621516 , 727052 , 545831 );
Copy
4
2.54 ms
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
473500
545801
545831
621516
625599
715460
719277
725622
727052
728802
731471
735614
735685
736353
736706
738625
738636
739855
740920
745716
747885
748046
749243
749704
750241
750531
751428
751432
752605
758026
758648
758788
760443
760923
761481
761495
763398
763522
766831
767220
769143
769312
769567
769882
770264
770382
773327
773906
775178
775705
776713
777306
777631
779840
780718
780784
782450
787624
788115
788843
790392
792088
792552
792645
795377
795396
796950
800497
803557
804862
808728
811808
812278
]
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 (473500 , 545801 , 545831 , 621516 , 625599 , 715460 , 719277 , 725622 , 727052 , 728802 , 731471 , 735614 , 735685 , 736353 , 736706 , 738625 , 738636 , 739855 , 740920 , 745716 , 747885 , 748046 , 749243 , 749704 , 750241 , 750531 , 751428 , 751432 , 752605 , 758026 , 758648 , 758788 , 760443 , 760923 , 761481 , 761495 , 763398 , 763522 , 766831 , 767220 , 769143 , 769312 , 769567 , 769882 , 770264 , 770382 , 773327 , 773906 , 775178 , 775705 , 776713 , 777306 , 777631 , 779840 , 780718 , 780784 , 782450 , 787624 , 788115 , 788843 , 790392 , 792088 , 792552 , 792645 , 795377 , 795396 , 796950 , 800497 , 803557 , 804862 , 808728 , 811808 , 812278 );
Copy
5
120.18 ms
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
473500
545801
545831
621516
625599
715460
719277
725622
727052
728802
731471
735614
735685
736353
736706
738625
738636
739855
740920
745716
747885
748046
749243
749704
750241
750531
751428
751432
752605
758026
758648
758788
760443
760923
761481
761495
763398
763522
766831
767220
769143
769312
769567
769882
770264
770382
773327
773906
775178
775705
776713
777306
777631
779840
780718
780784
782450
787624
788115
788843
790392
792088
792552
792645
795377
795396
796950
800497
803557
804862
808728
811808
812278
]
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 (473500 , 545801 , 545831 , 621516 , 625599 , 715460 , 719277 , 725622 , 727052 , 728802 , 731471 , 735614 , 735685 , 736353 , 736706 , 738625 , 738636 , 739855 , 740920 , 745716 , 747885 , 748046 , 749243 , 749704 , 750241 , 750531 , 751428 , 751432 , 752605 , 758026 , 758648 , 758788 , 760443 , 760923 , 761481 , 761495 , 763398 , 763522 , 766831 , 767220 , 769143 , 769312 , 769567 , 769882 , 770264 , 770382 , 773327 , 773906 , 775178 , 775705 , 776713 , 777306 , 777631 , 779840 , 780718 , 780784 , 782450 , 787624 , 788115 , 788843 , 790392 , 792088 , 792552 , 792645 , 795377 , 795396 , 796950 , 800497 , 803557 , 804862 , 808728 , 811808 , 812278 );
Copy