3
12.53 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
390593
769851
769822
718542
769841
769811
769880
769771
769774
769808
720768
811657
769829
769787
769824
769748
769772
769755
769778
769809
769860
769875
720798
766798
769741
769789
769814
769820
769830
769848
769745
769760
769805
769816
720805
720762
720787
769793
769747
769769
769839
769863
769867
769743
600182
774112
769818
769751
769765
769796
769819
769764
720802
769837
705879
636530
423580
429909
639729
541242
632669
634773
567605
417344
632691
632645
448834
560925
]
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 (390593 , 769851 , 769822 , 718542 , 769841 , 769811 , 769880 , 769771 , 769774 , 769808 , 720768 , 811657 , 769829 , 769787 , 769824 , 769748 , 769772 , 769755 , 769778 , 769809 , 769860 , 769875 , 720798 , 766798 , 769741 , 769789 , 769814 , 769820 , 769830 , 769848 , 769745 , 769760 , 769805 , 769816 , 720805 , 720762 , 720787 , 769793 , 769747 , 769769 , 769839 , 769863 , 769867 , 769743 , 600182 , 774112 , 769818 , 769751 , 769765 , 769796 , 769819 , 769764 , 720802 , 769837 , 705879 , 636530 , 423580 , 429909 , 639729 , 541242 , 632669 , 634773 , 567605 , 417344 , 632691 , 632645 , 448834 , 560925 );
Copy
4
1.87 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
390593
417344
423580
429909
448834
541242
560925
567605
600182
632645
632669
632691
634773
636530
639729
705879
718542
720762
720768
720787
720798
720802
720805
766798
769741
769743
769745
769747
769748
769751
769755
769760
769764
769765
769769
769771
769772
769774
769778
769787
769789
769793
769796
769805
769808
769809
769811
769814
769816
769818
769819
769820
769822
769824
769829
769830
769837
769839
769841
769848
769851
769860
769863
769867
769875
769880
774112
811657
]
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 (390593 , 417344 , 423580 , 429909 , 448834 , 541242 , 560925 , 567605 , 600182 , 632645 , 632669 , 632691 , 634773 , 636530 , 639729 , 705879 , 718542 , 720762 , 720768 , 720787 , 720798 , 720802 , 720805 , 766798 , 769741 , 769743 , 769745 , 769747 , 769748 , 769751 , 769755 , 769760 , 769764 , 769765 , 769769 , 769771 , 769772 , 769774 , 769778 , 769787 , 769789 , 769793 , 769796 , 769805 , 769808 , 769809 , 769811 , 769814 , 769816 , 769818 , 769819 , 769820 , 769822 , 769824 , 769829 , 769830 , 769837 , 769839 , 769841 , 769848 , 769851 , 769860 , 769863 , 769867 , 769875 , 769880 , 774112 , 811657 );
Copy
5
107.11 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
390593
417344
423580
429909
448834
541242
560925
567605
600182
632645
632669
632691
634773
636530
639729
705879
718542
720762
720768
720787
720798
720802
720805
766798
769741
769743
769745
769747
769748
769751
769755
769760
769764
769765
769769
769771
769772
769774
769778
769787
769789
769793
769796
769805
769808
769809
769811
769814
769816
769818
769819
769820
769822
769824
769829
769830
769837
769839
769841
769848
769851
769860
769863
769867
769875
769880
774112
811657
]
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 (390593 , 417344 , 423580 , 429909 , 448834 , 541242 , 560925 , 567605 , 600182 , 632645 , 632669 , 632691 , 634773 , 636530 , 639729 , 705879 , 718542 , 720762 , 720768 , 720787 , 720798 , 720802 , 720805 , 766798 , 769741 , 769743 , 769745 , 769747 , 769748 , 769751 , 769755 , 769760 , 769764 , 769765 , 769769 , 769771 , 769772 , 769774 , 769778 , 769787 , 769789 , 769793 , 769796 , 769805 , 769808 , 769809 , 769811 , 769814 , 769816 , 769818 , 769819 , 769820 , 769822 , 769824 , 769829 , 769830 , 769837 , 769839 , 769841 , 769848 , 769851 , 769860 , 769863 , 769867 , 769875 , 769880 , 774112 , 811657 );
Copy