3
9.90 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
702899
702978
702973
696165
571661
696171
738961
487730
702904
802430
582392
722714
702947
702966
716503
571666
379604
571664
747939
710609
598429
731887
786977
800076
800885
758926
811000
710604
616188
776176
759898
629966
789605
785899
810699
776433
793962
802835
685646
598864
611923
596907
772700
789709
797787
498342
675221
687588
707315
721724
601274
772399
810986
814940
637706
626849
582693
647687
668528
633130
809520
606782
604058
647986
]
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 (702899 , 702978 , 702973 , 696165 , 571661 , 696171 , 738961 , 487730 , 702904 , 802430 , 582392 , 722714 , 702947 , 702966 , 716503 , 571666 , 379604 , 571664 , 747939 , 710609 , 598429 , 731887 , 786977 , 800076 , 800885 , 758926 , 811000 , 710604 , 616188 , 776176 , 759898 , 629966 , 789605 , 785899 , 810699 , 776433 , 793962 , 802835 , 685646 , 598864 , 611923 , 596907 , 772700 , 789709 , 797787 , 498342 , 675221 , 687588 , 707315 , 721724 , 601274 , 772399 , 810986 , 814940 , 637706 , 626849 , 582693 , 647687 , 668528 , 633130 , 809520 , 606782 , 604058 , 647986 );
Copy
4
2.94 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
379604
487730
498342
571661
571664
571666
582392
582693
596907
598429
598864
601274
604058
606782
611923
616188
626849
629966
633130
637706
647687
647986
668528
675221
685646
687588
696165
696171
702899
702904
702947
702966
702973
702978
707315
710604
710609
716503
721724
722714
731887
738961
747939
758926
759898
772399
772700
776176
776433
785899
786977
789605
789709
793962
797787
800076
800885
802430
802835
809520
810699
810986
811000
814940
]
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 (379604 , 487730 , 498342 , 571661 , 571664 , 571666 , 582392 , 582693 , 596907 , 598429 , 598864 , 601274 , 604058 , 606782 , 611923 , 616188 , 626849 , 629966 , 633130 , 637706 , 647687 , 647986 , 668528 , 675221 , 685646 , 687588 , 696165 , 696171 , 702899 , 702904 , 702947 , 702966 , 702973 , 702978 , 707315 , 710604 , 710609 , 716503 , 721724 , 722714 , 731887 , 738961 , 747939 , 758926 , 759898 , 772399 , 772700 , 776176 , 776433 , 785899 , 786977 , 789605 , 789709 , 793962 , 797787 , 800076 , 800885 , 802430 , 802835 , 809520 , 810699 , 810986 , 811000 , 814940 );
Copy
5
73.21 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
379604
487730
498342
571661
571664
571666
582392
582693
596907
598429
598864
601274
604058
606782
611923
616188
626849
629966
633130
637706
647687
647986
668528
675221
685646
687588
696165
696171
702899
702904
702947
702966
702973
702978
707315
710604
710609
716503
721724
722714
731887
738961
747939
758926
759898
772399
772700
776176
776433
785899
786977
789605
789709
793962
797787
800076
800885
802430
802835
809520
810699
810986
811000
814940
]
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 (379604 , 487730 , 498342 , 571661 , 571664 , 571666 , 582392 , 582693 , 596907 , 598429 , 598864 , 601274 , 604058 , 606782 , 611923 , 616188 , 626849 , 629966 , 633130 , 637706 , 647687 , 647986 , 668528 , 675221 , 685646 , 687588 , 696165 , 696171 , 702899 , 702904 , 702947 , 702966 , 702973 , 702978 , 707315 , 710604 , 710609 , 716503 , 721724 , 722714 , 731887 , 738961 , 747939 , 758926 , 759898 , 772399 , 772700 , 776176 , 776433 , 785899 , 786977 , 789605 , 789709 , 793962 , 797787 , 800076 , 800885 , 802430 , 802835 , 809520 , 810699 , 810986 , 811000 , 814940 );
Copy