3
10.61 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
699392
784466
758905
595314
800071
651544
800367
539213
649107
552929
419055
405727
612233
755721
709669
388075
827987
747942
720407
747952
339415
419273
512211
637938
771047
390574
670526
747951
327421
529432
712205
419950
403357
453009
566849
558359
593590
606210
727920
781097
747944
604688
793172
581992
669258
654269
672243
700966
624172
771961
499043
492124
781488
39142
532483
556104
807716
531196
572021
670197
737121
418018
473109
778383
488465
534023
601101
]
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 (699392 , 784466 , 758905 , 595314 , 800071 , 651544 , 800367 , 539213 , 649107 , 552929 , 419055 , 405727 , 612233 , 755721 , 709669 , 388075 , 827987 , 747942 , 720407 , 747952 , 339415 , 419273 , 512211 , 637938 , 771047 , 390574 , 670526 , 747951 , 327421 , 529432 , 712205 , 419950 , 403357 , 453009 , 566849 , 558359 , 593590 , 606210 , 727920 , 781097 , 747944 , 604688 , 793172 , 581992 , 669258 , 654269 , 672243 , 700966 , 624172 , 771961 , 499043 , 492124 , 781488 , 39142 , 532483 , 556104 , 807716 , 531196 , 572021 , 670197 , 737121 , 418018 , 473109 , 778383 , 488465 , 534023 , 601101 );
Copy
4
2.50 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
39142
327421
339415
388075
390574
403357
405727
418018
419055
419273
419950
453009
473109
488465
492124
499043
512211
529432
531196
532483
534023
539213
552929
556104
558359
566849
572021
581992
593590
595314
601101
604688
606210
612233
624172
637938
649107
651544
654269
669258
670197
670526
672243
699392
700966
709669
712205
720407
727920
737121
747942
747944
747951
747952
755721
758905
771047
771961
778383
781097
781488
784466
793172
800071
800367
807716
827987
]
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 (39142 , 327421 , 339415 , 388075 , 390574 , 403357 , 405727 , 418018 , 419055 , 419273 , 419950 , 453009 , 473109 , 488465 , 492124 , 499043 , 512211 , 529432 , 531196 , 532483 , 534023 , 539213 , 552929 , 556104 , 558359 , 566849 , 572021 , 581992 , 593590 , 595314 , 601101 , 604688 , 606210 , 612233 , 624172 , 637938 , 649107 , 651544 , 654269 , 669258 , 670197 , 670526 , 672243 , 699392 , 700966 , 709669 , 712205 , 720407 , 727920 , 737121 , 747942 , 747944 , 747951 , 747952 , 755721 , 758905 , 771047 , 771961 , 778383 , 781097 , 781488 , 784466 , 793172 , 800071 , 800367 , 807716 , 827987 );
Copy
5
93.45 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
39142
327421
339415
388075
390574
403357
405727
418018
419055
419273
419950
453009
473109
488465
492124
499043
512211
529432
531196
532483
534023
539213
552929
556104
558359
566849
572021
581992
593590
595314
601101
604688
606210
612233
624172
637938
649107
651544
654269
669258
670197
670526
672243
699392
700966
709669
712205
720407
727920
737121
747942
747944
747951
747952
755721
758905
771047
771961
778383
781097
781488
784466
793172
800071
800367
807716
827987
]
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 (39142 , 327421 , 339415 , 388075 , 390574 , 403357 , 405727 , 418018 , 419055 , 419273 , 419950 , 453009 , 473109 , 488465 , 492124 , 499043 , 512211 , 529432 , 531196 , 532483 , 534023 , 539213 , 552929 , 556104 , 558359 , 566849 , 572021 , 581992 , 593590 , 595314 , 601101 , 604688 , 606210 , 612233 , 624172 , 637938 , 649107 , 651544 , 654269 , 669258 , 670197 , 670526 , 672243 , 699392 , 700966 , 709669 , 712205 , 720407 , 727920 , 737121 , 747942 , 747944 , 747951 , 747952 , 755721 , 758905 , 771047 , 771961 , 778383 , 781097 , 781488 , 784466 , 793172 , 800071 , 800367 , 807716 , 827987 );
Copy