3
8.47 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
805727
789770
818189
717795
791025
794948
538271
825654
752494
826734
783138
718897
720023
729169
744349
760335
732264
618030
740738
747171
757182
725532
816131
719600
718407
807068
736208
741003
778662
760083
796994
821862
740907
735442
789766
730548
802371
745386
679957
734640
767795
752735
759327
814518
717098
805921
796699
763103
795755
821867
794978
729751
807324
746340
735460
773906
747885
712242
763522
718091
794951
763072
801560
787336
794947
794963
730798
]
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 (805727 , 789770 , 818189 , 717795 , 791025 , 794948 , 538271 , 825654 , 752494 , 826734 , 783138 , 718897 , 720023 , 729169 , 744349 , 760335 , 732264 , 618030 , 740738 , 747171 , 757182 , 725532 , 816131 , 719600 , 718407 , 807068 , 736208 , 741003 , 778662 , 760083 , 796994 , 821862 , 740907 , 735442 , 789766 , 730548 , 802371 , 745386 , 679957 , 734640 , 767795 , 752735 , 759327 , 814518 , 717098 , 805921 , 796699 , 763103 , 795755 , 821867 , 794978 , 729751 , 807324 , 746340 , 735460 , 773906 , 747885 , 712242 , 763522 , 718091 , 794951 , 763072 , 801560 , 787336 , 794947 , 794963 , 730798 );
Copy
4
2.34 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
538271
618030
679957
712242
717098
717795
718091
718407
718897
719600
720023
725532
729169
729751
730548
730798
732264
734640
735442
735460
736208
740738
740907
741003
744349
745386
746340
747171
747885
752494
752735
757182
759327
760083
760335
763072
763103
763522
767795
773906
778662
783138
787336
789766
789770
791025
794947
794948
794951
794963
794978
795755
796699
796994
801560
802371
805727
805921
807068
807324
814518
816131
818189
821862
821867
825654
826734
]
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 (538271 , 618030 , 679957 , 712242 , 717098 , 717795 , 718091 , 718407 , 718897 , 719600 , 720023 , 725532 , 729169 , 729751 , 730548 , 730798 , 732264 , 734640 , 735442 , 735460 , 736208 , 740738 , 740907 , 741003 , 744349 , 745386 , 746340 , 747171 , 747885 , 752494 , 752735 , 757182 , 759327 , 760083 , 760335 , 763072 , 763103 , 763522 , 767795 , 773906 , 778662 , 783138 , 787336 , 789766 , 789770 , 791025 , 794947 , 794948 , 794951 , 794963 , 794978 , 795755 , 796699 , 796994 , 801560 , 802371 , 805727 , 805921 , 807068 , 807324 , 814518 , 816131 , 818189 , 821862 , 821867 , 825654 , 826734 );
Copy
5
68.33 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
538271
618030
679957
712242
717098
717795
718091
718407
718897
719600
720023
725532
729169
729751
730548
730798
732264
734640
735442
735460
736208
740738
740907
741003
744349
745386
746340
747171
747885
752494
752735
757182
759327
760083
760335
763072
763103
763522
767795
773906
778662
783138
787336
789766
789770
791025
794947
794948
794951
794963
794978
795755
796699
796994
801560
802371
805727
805921
807068
807324
814518
816131
818189
821862
821867
825654
826734
]
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 (538271 , 618030 , 679957 , 712242 , 717098 , 717795 , 718091 , 718407 , 718897 , 719600 , 720023 , 725532 , 729169 , 729751 , 730548 , 730798 , 732264 , 734640 , 735442 , 735460 , 736208 , 740738 , 740907 , 741003 , 744349 , 745386 , 746340 , 747171 , 747885 , 752494 , 752735 , 757182 , 759327 , 760083 , 760335 , 763072 , 763103 , 763522 , 767795 , 773906 , 778662 , 783138 , 787336 , 789766 , 789770 , 791025 , 794947 , 794948 , 794951 , 794963 , 794978 , 795755 , 796699 , 796994 , 801560 , 802371 , 805727 , 805921 , 807068 , 807324 , 814518 , 816131 , 818189 , 821862 , 821867 , 825654 , 826734 );
Copy