4
10.21 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
659966
664740
720315
576865
739291
683717
658102
650023
683794
595843
788008
637542
775086
818700
673033
634046
545808
683784
683795
664735
683801
634050
634007
630723
750132
651457
818722
683746
648619
767053
575829
664763
683721
810952
746756
569647
746687
683785
667160
683766
634011
750684
543121
725549
524744
683738
636632
774027
569648
683758
452461
462529
452454
466708
698451
662865
637560
545820
470184
634049
637534
642409
482489
522403
]
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 (659966 , 664740 , 720315 , 576865 , 739291 , 683717 , 658102 , 650023 , 683794 , 595843 , 788008 , 637542 , 775086 , 818700 , 673033 , 634046 , 545808 , 683784 , 683795 , 664735 , 683801 , 634050 , 634007 , 630723 , 750132 , 651457 , 818722 , 683746 , 648619 , 767053 , 575829 , 664763 , 683721 , 810952 , 746756 , 569647 , 746687 , 683785 , 667160 , 683766 , 634011 , 750684 , 543121 , 725549 , 524744 , 683738 , 636632 , 774027 , 569648 , 683758 , 452461 , 462529 , 452454 , 466708 , 698451 , 662865 , 637560 , 545820 , 470184 , 634049 , 637534 , 642409 , 482489 , 522403 );
Copy
5
2.90 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
452454
452461
462529
466708
470184
482489
522403
524744
543121
545808
545820
569647
569648
575829
576865
595843
630723
634007
634011
634046
634049
634050
636632
637534
637542
637560
642409
648619
650023
651457
658102
659966
662865
664735
664740
664763
667160
673033
683717
683721
683738
683746
683758
683766
683784
683785
683794
683795
683801
698451
720315
725549
739291
746687
746756
750132
750684
767053
775086
788008
810952
818700
818722
]
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 (452454 , 452461 , 462529 , 466708 , 470184 , 482489 , 522403 , 524744 , 543121 , 545808 , 545820 , 569647 , 569648 , 575829 , 576865 , 595843 , 630723 , 634007 , 634011 , 634046 , 634049 , 634050 , 636632 , 637534 , 637542 , 637560 , 642409 , 648619 , 650023 , 651457 , 658102 , 659966 , 662865 , 664735 , 664740 , 664763 , 667160 , 673033 , 683717 , 683721 , 683738 , 683746 , 683758 , 683766 , 683784 , 683785 , 683794 , 683795 , 683801 , 698451 , 720315 , 725549 , 739291 , 746687 , 746756 , 750132 , 750684 , 767053 , 775086 , 788008 , 810952 , 818700 , 818722 );
Copy
6
83.43 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
452454
452461
462529
466708
470184
482489
522403
524744
543121
545808
545820
569647
569648
575829
576865
595843
630723
634007
634011
634046
634049
634050
636632
637534
637542
637560
642409
648619
650023
651457
658102
659966
662865
664735
664740
664763
667160
673033
683717
683721
683738
683746
683758
683766
683784
683785
683794
683795
683801
698451
720315
725549
739291
746687
746756
750132
750684
767053
775086
788008
810952
818700
818722
]
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 (452454 , 452461 , 462529 , 466708 , 470184 , 482489 , 522403 , 524744 , 543121 , 545808 , 545820 , 569647 , 569648 , 575829 , 576865 , 595843 , 630723 , 634007 , 634011 , 634046 , 634049 , 634050 , 636632 , 637534 , 637542 , 637560 , 642409 , 648619 , 650023 , 651457 , 658102 , 659966 , 662865 , 664735 , 664740 , 664763 , 667160 , 673033 , 683717 , 683721 , 683738 , 683746 , 683758 , 683766 , 683784 , 683785 , 683794 , 683795 , 683801 , 698451 , 720315 , 725549 , 739291 , 746687 , 746756 , 750132 , 750684 , 767053 , 775086 , 788008 , 810952 , 818700 , 818722 );
Copy