3
12.89 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
585135
815033
687225
739098
677604
740206
748152
685686
718657
775999
807698
767957
781766
311853
679378
721864
736042
758435
693077
807518
808176
475089
665852
721563
667281
594213
795683
790223
515133
567152
481847
515183
820386
570182
552281
668886
667532
807329
789711
612868
515138
402792
815314
667320
704914
667288
789702
480959
712696
816949
803095
470207
398949
815735
663856
665466
439579
516121
515107
498057
572029
387321
515896
629950
525866
]
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 (585135 , 815033 , 687225 , 739098 , 677604 , 740206 , 748152 , 685686 , 718657 , 775999 , 807698 , 767957 , 781766 , 311853 , 679378 , 721864 , 736042 , 758435 , 693077 , 807518 , 808176 , 475089 , 665852 , 721563 , 667281 , 594213 , 795683 , 790223 , 515133 , 567152 , 481847 , 515183 , 820386 , 570182 , 552281 , 668886 , 667532 , 807329 , 789711 , 612868 , 515138 , 402792 , 815314 , 667320 , 704914 , 667288 , 789702 , 480959 , 712696 , 816949 , 803095 , 470207 , 398949 , 815735 , 663856 , 665466 , 439579 , 516121 , 515107 , 498057 , 572029 , 387321 , 515896 , 629950 , 525866 );
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
311853
387321
398949
402792
439579
470207
475089
480959
481847
498057
515107
515133
515138
515183
515896
516121
525866
552281
567152
570182
572029
585135
594213
612868
629950
663856
665466
665852
667281
667288
667320
667532
668886
677604
679378
685686
687225
693077
704914
712696
718657
721563
721864
736042
739098
740206
748152
758435
767957
775999
781766
789702
789711
790223
795683
803095
807329
807518
807698
808176
815033
815314
815735
816949
820386
]
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 (311853 , 387321 , 398949 , 402792 , 439579 , 470207 , 475089 , 480959 , 481847 , 498057 , 515107 , 515133 , 515138 , 515183 , 515896 , 516121 , 525866 , 552281 , 567152 , 570182 , 572029 , 585135 , 594213 , 612868 , 629950 , 663856 , 665466 , 665852 , 667281 , 667288 , 667320 , 667532 , 668886 , 677604 , 679378 , 685686 , 687225 , 693077 , 704914 , 712696 , 718657 , 721563 , 721864 , 736042 , 739098 , 740206 , 748152 , 758435 , 767957 , 775999 , 781766 , 789702 , 789711 , 790223 , 795683 , 803095 , 807329 , 807518 , 807698 , 808176 , 815033 , 815314 , 815735 , 816949 , 820386 );
Copy
5
75.82 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
311853
387321
398949
402792
439579
470207
475089
480959
481847
498057
515107
515133
515138
515183
515896
516121
525866
552281
567152
570182
572029
585135
594213
612868
629950
663856
665466
665852
667281
667288
667320
667532
668886
677604
679378
685686
687225
693077
704914
712696
718657
721563
721864
736042
739098
740206
748152
758435
767957
775999
781766
789702
789711
790223
795683
803095
807329
807518
807698
808176
815033
815314
815735
816949
820386
]
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 (311853 , 387321 , 398949 , 402792 , 439579 , 470207 , 475089 , 480959 , 481847 , 498057 , 515107 , 515133 , 515138 , 515183 , 515896 , 516121 , 525866 , 552281 , 567152 , 570182 , 572029 , 585135 , 594213 , 612868 , 629950 , 663856 , 665466 , 665852 , 667281 , 667288 , 667320 , 667532 , 668886 , 677604 , 679378 , 685686 , 687225 , 693077 , 704914 , 712696 , 718657 , 721563 , 721864 , 736042 , 739098 , 740206 , 748152 , 758435 , 767957 , 775999 , 781766 , 789702 , 789711 , 790223 , 795683 , 803095 , 807329 , 807518 , 807698 , 808176 , 815033 , 815314 , 815735 , 816949 , 820386 );
Copy