3
10.16 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
770957
752702
745196
746149
736812
601220
781021
789404
785771
540388
669545
669277
698458
790379
812946
784028
540387
601566
790373
722542
605408
799400
797843
753155
714813
697382
556042
813074
803635
810682
540429
511629
672579
565140
584289
602993
802750
803036
803047
770954
715816
801668
665921
681867
630856
634565
628375
803621
731990
765628
545521
644569
624039
774009
732003
603735
786230
803046
623930
805020
768663
782516
516329
674967
628389
]
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 (770957 , 752702 , 745196 , 746149 , 736812 , 601220 , 781021 , 789404 , 785771 , 540388 , 669545 , 669277 , 698458 , 790379 , 812946 , 784028 , 540387 , 601566 , 790373 , 722542 , 605408 , 799400 , 797843 , 753155 , 714813 , 697382 , 556042 , 813074 , 803635 , 810682 , 540429 , 511629 , 672579 , 565140 , 584289 , 602993 , 802750 , 803036 , 803047 , 770954 , 715816 , 801668 , 665921 , 681867 , 630856 , 634565 , 628375 , 803621 , 731990 , 765628 , 545521 , 644569 , 624039 , 774009 , 732003 , 603735 , 786230 , 803046 , 623930 , 805020 , 768663 , 782516 , 516329 , 674967 , 628389 );
Copy
4
3.15 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
511629
516329
540387
540388
540429
545521
556042
565140
584289
601220
601566
602993
603735
605408
623930
624039
628375
628389
630856
634565
644569
665921
669277
669545
672579
674967
681867
697382
698458
714813
715816
722542
731990
732003
736812
745196
746149
752702
753155
765628
768663
770954
770957
774009
781021
782516
784028
785771
786230
789404
790373
790379
797843
799400
801668
802750
803036
803046
803047
803621
803635
805020
810682
812946
813074
]
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 (511629 , 516329 , 540387 , 540388 , 540429 , 545521 , 556042 , 565140 , 584289 , 601220 , 601566 , 602993 , 603735 , 605408 , 623930 , 624039 , 628375 , 628389 , 630856 , 634565 , 644569 , 665921 , 669277 , 669545 , 672579 , 674967 , 681867 , 697382 , 698458 , 714813 , 715816 , 722542 , 731990 , 732003 , 736812 , 745196 , 746149 , 752702 , 753155 , 765628 , 768663 , 770954 , 770957 , 774009 , 781021 , 782516 , 784028 , 785771 , 786230 , 789404 , 790373 , 790379 , 797843 , 799400 , 801668 , 802750 , 803036 , 803046 , 803047 , 803621 , 803635 , 805020 , 810682 , 812946 , 813074 );
Copy
5
96.17 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
511629
516329
540387
540388
540429
545521
556042
565140
584289
601220
601566
602993
603735
605408
623930
624039
628375
628389
630856
634565
644569
665921
669277
669545
672579
674967
681867
697382
698458
714813
715816
722542
731990
732003
736812
745196
746149
752702
753155
765628
768663
770954
770957
774009
781021
782516
784028
785771
786230
789404
790373
790379
797843
799400
801668
802750
803036
803046
803047
803621
803635
805020
810682
812946
813074
]
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 (511629 , 516329 , 540387 , 540388 , 540429 , 545521 , 556042 , 565140 , 584289 , 601220 , 601566 , 602993 , 603735 , 605408 , 623930 , 624039 , 628375 , 628389 , 630856 , 634565 , 644569 , 665921 , 669277 , 669545 , 672579 , 674967 , 681867 , 697382 , 698458 , 714813 , 715816 , 722542 , 731990 , 732003 , 736812 , 745196 , 746149 , 752702 , 753155 , 765628 , 768663 , 770954 , 770957 , 774009 , 781021 , 782516 , 784028 , 785771 , 786230 , 789404 , 790373 , 790379 , 797843 , 799400 , 801668 , 802750 , 803036 , 803046 , 803047 , 803621 , 803635 , 805020 , 810682 , 812946 , 813074 );
Copy