3
10.73 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
321590
771881
566963
752167
770470
773593
676379
780130
802842
500949
675956
681256
804757
675995
723102
675923
754174
555888
558821
564721
676268
675910
809293
802123
806058
525620
646245
682033
559960
586676
771845
510562
559952
674749
812581
602679
440620
584001
580665
688108
546218
820672
634854
770837
740604
818912
820850
723112
800210
612946
820747
816592
712942
631595
794609
525820
420106
567012
559954
407516
665698
810976
487001
472499
515840
]
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 (321590 , 771881 , 566963 , 752167 , 770470 , 773593 , 676379 , 780130 , 802842 , 500949 , 675956 , 681256 , 804757 , 675995 , 723102 , 675923 , 754174 , 555888 , 558821 , 564721 , 676268 , 675910 , 809293 , 802123 , 806058 , 525620 , 646245 , 682033 , 559960 , 586676 , 771845 , 510562 , 559952 , 674749 , 812581 , 602679 , 440620 , 584001 , 580665 , 688108 , 546218 , 820672 , 634854 , 770837 , 740604 , 818912 , 820850 , 723112 , 800210 , 612946 , 820747 , 816592 , 712942 , 631595 , 794609 , 525820 , 420106 , 567012 , 559954 , 407516 , 665698 , 810976 , 487001 , 472499 , 515840 );
Copy
4
2.55 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
321590
407516
420106
440620
472499
487001
500949
510562
515840
525620
525820
546218
555888
558821
559952
559954
559960
564721
566963
567012
580665
584001
586676
602679
612946
631595
634854
646245
665698
674749
675910
675923
675956
675995
676268
676379
681256
682033
688108
712942
723102
723112
740604
752167
754174
770470
770837
771845
771881
773593
780130
794609
800210
802123
802842
804757
806058
809293
810976
812581
816592
818912
820672
820747
820850
]
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 (321590 , 407516 , 420106 , 440620 , 472499 , 487001 , 500949 , 510562 , 515840 , 525620 , 525820 , 546218 , 555888 , 558821 , 559952 , 559954 , 559960 , 564721 , 566963 , 567012 , 580665 , 584001 , 586676 , 602679 , 612946 , 631595 , 634854 , 646245 , 665698 , 674749 , 675910 , 675923 , 675956 , 675995 , 676268 , 676379 , 681256 , 682033 , 688108 , 712942 , 723102 , 723112 , 740604 , 752167 , 754174 , 770470 , 770837 , 771845 , 771881 , 773593 , 780130 , 794609 , 800210 , 802123 , 802842 , 804757 , 806058 , 809293 , 810976 , 812581 , 816592 , 818912 , 820672 , 820747 , 820850 );
Copy
5
75.24 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
321590
407516
420106
440620
472499
487001
500949
510562
515840
525620
525820
546218
555888
558821
559952
559954
559960
564721
566963
567012
580665
584001
586676
602679
612946
631595
634854
646245
665698
674749
675910
675923
675956
675995
676268
676379
681256
682033
688108
712942
723102
723112
740604
752167
754174
770470
770837
771845
771881
773593
780130
794609
800210
802123
802842
804757
806058
809293
810976
812581
816592
818912
820672
820747
820850
]
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 (321590 , 407516 , 420106 , 440620 , 472499 , 487001 , 500949 , 510562 , 515840 , 525620 , 525820 , 546218 , 555888 , 558821 , 559952 , 559954 , 559960 , 564721 , 566963 , 567012 , 580665 , 584001 , 586676 , 602679 , 612946 , 631595 , 634854 , 646245 , 665698 , 674749 , 675910 , 675923 , 675956 , 675995 , 676268 , 676379 , 681256 , 682033 , 688108 , 712942 , 723102 , 723112 , 740604 , 752167 , 754174 , 770470 , 770837 , 771845 , 771881 , 773593 , 780130 , 794609 , 800210 , 802123 , 802842 , 804757 , 806058 , 809293 , 810976 , 812581 , 816592 , 818912 , 820672 , 820747 , 820850 );
Copy