3
10.35 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
821103
618965
628382
406820
530774
817489
820677
49582
396316
557548
586433
753422
823512
818777
52231
777069
506555
719907
745929
478100
777075
461401
464593
827304
506559
469840
638298
685639
648549
413991
777073
773217
525344
406831
491456
685646
812779
521825
472134
406800
787443
454657
589756
467178
589796
518266
520665
491706
448177
401232
418860
619457
455193
632356
510675
451221
575457
520461
487144
823486
550752
454467
575716
551539
544296
]
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 (821103 , 618965 , 628382 , 406820 , 530774 , 817489 , 820677 , 49582 , 396316 , 557548 , 586433 , 753422 , 823512 , 818777 , 52231 , 777069 , 506555 , 719907 , 745929 , 478100 , 777075 , 461401 , 464593 , 827304 , 506559 , 469840 , 638298 , 685639 , 648549 , 413991 , 777073 , 773217 , 525344 , 406831 , 491456 , 685646 , 812779 , 521825 , 472134 , 406800 , 787443 , 454657 , 589756 , 467178 , 589796 , 518266 , 520665 , 491706 , 448177 , 401232 , 418860 , 619457 , 455193 , 632356 , 510675 , 451221 , 575457 , 520461 , 487144 , 823486 , 550752 , 454467 , 575716 , 551539 , 544296 );
Copy
4
2.35 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
49582
52231
396316
401232
406800
406820
406831
413991
418860
448177
451221
454467
454657
455193
461401
464593
467178
469840
472134
478100
487144
491456
491706
506555
506559
510675
518266
520461
520665
521825
525344
530774
544296
550752
551539
557548
575457
575716
586433
589756
589796
618965
619457
628382
632356
638298
648549
685639
685646
719907
745929
753422
773217
777069
777073
777075
787443
812779
817489
818777
820677
821103
823486
823512
827304
]
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 (49582 , 52231 , 396316 , 401232 , 406800 , 406820 , 406831 , 413991 , 418860 , 448177 , 451221 , 454467 , 454657 , 455193 , 461401 , 464593 , 467178 , 469840 , 472134 , 478100 , 487144 , 491456 , 491706 , 506555 , 506559 , 510675 , 518266 , 520461 , 520665 , 521825 , 525344 , 530774 , 544296 , 550752 , 551539 , 557548 , 575457 , 575716 , 586433 , 589756 , 589796 , 618965 , 619457 , 628382 , 632356 , 638298 , 648549 , 685639 , 685646 , 719907 , 745929 , 753422 , 773217 , 777069 , 777073 , 777075 , 787443 , 812779 , 817489 , 818777 , 820677 , 821103 , 823486 , 823512 , 827304 );
Copy
5
80.12 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
49582
52231
396316
401232
406800
406820
406831
413991
418860
448177
451221
454467
454657
455193
461401
464593
467178
469840
472134
478100
487144
491456
491706
506555
506559
510675
518266
520461
520665
521825
525344
530774
544296
550752
551539
557548
575457
575716
586433
589756
589796
618965
619457
628382
632356
638298
648549
685639
685646
719907
745929
753422
773217
777069
777073
777075
787443
812779
817489
818777
820677
821103
823486
823512
827304
]
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 (49582 , 52231 , 396316 , 401232 , 406800 , 406820 , 406831 , 413991 , 418860 , 448177 , 451221 , 454467 , 454657 , 455193 , 461401 , 464593 , 467178 , 469840 , 472134 , 478100 , 487144 , 491456 , 491706 , 506555 , 506559 , 510675 , 518266 , 520461 , 520665 , 521825 , 525344 , 530774 , 544296 , 550752 , 551539 , 557548 , 575457 , 575716 , 586433 , 589756 , 589796 , 618965 , 619457 , 628382 , 632356 , 638298 , 648549 , 685639 , 685646 , 719907 , 745929 , 753422 , 773217 , 777069 , 777073 , 777075 , 787443 , 812779 , 817489 , 818777 , 820677 , 821103 , 823486 , 823512 , 827304 );
Copy