3
9.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
742919
791049
482053
825177
783785
775601
727060
812458
784230
441915
823422
761681
794470
782767
795765
555642
514346
715246
744522
787887
827370
628463
734017
488703
811777
617587
802884
764511
779452
660292
495663
715810
774966
388350
722101
606338
787130
529155
763304
442143
562402
457014
748662
434953
436423
484218
560833
456367
807506
423361
457545
593279
525452
495823
457176
518077
472985
463072
528055
418879
507285
559725
]
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 (742919 , 791049 , 482053 , 825177 , 783785 , 775601 , 727060 , 812458 , 784230 , 441915 , 823422 , 761681 , 794470 , 782767 , 795765 , 555642 , 514346 , 715246 , 744522 , 787887 , 827370 , 628463 , 734017 , 488703 , 811777 , 617587 , 802884 , 764511 , 779452 , 660292 , 495663 , 715810 , 774966 , 388350 , 722101 , 606338 , 787130 , 529155 , 763304 , 442143 , 562402 , 457014 , 748662 , 434953 , 436423 , 484218 , 560833 , 456367 , 807506 , 423361 , 457545 , 593279 , 525452 , 495823 , 457176 , 518077 , 472985 , 463072 , 528055 , 418879 , 507285 , 559725 );
Copy
4
2.21 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
388350
418879
423361
434953
436423
441915
442143
456367
457014
457176
457545
463072
472985
482053
484218
488703
495663
495823
507285
514346
518077
525452
528055
529155
555642
559725
560833
562402
593279
606338
617587
628463
660292
715246
715810
722101
727060
734017
742919
744522
748662
761681
763304
764511
774966
775601
779452
782767
783785
784230
787130
787887
791049
794470
795765
802884
807506
811777
812458
823422
825177
827370
]
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 (388350 , 418879 , 423361 , 434953 , 436423 , 441915 , 442143 , 456367 , 457014 , 457176 , 457545 , 463072 , 472985 , 482053 , 484218 , 488703 , 495663 , 495823 , 507285 , 514346 , 518077 , 525452 , 528055 , 529155 , 555642 , 559725 , 560833 , 562402 , 593279 , 606338 , 617587 , 628463 , 660292 , 715246 , 715810 , 722101 , 727060 , 734017 , 742919 , 744522 , 748662 , 761681 , 763304 , 764511 , 774966 , 775601 , 779452 , 782767 , 783785 , 784230 , 787130 , 787887 , 791049 , 794470 , 795765 , 802884 , 807506 , 811777 , 812458 , 823422 , 825177 , 827370 );
Copy
5
84.40 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
388350
418879
423361
434953
436423
441915
442143
456367
457014
457176
457545
463072
472985
482053
484218
488703
495663
495823
507285
514346
518077
525452
528055
529155
555642
559725
560833
562402
593279
606338
617587
628463
660292
715246
715810
722101
727060
734017
742919
744522
748662
761681
763304
764511
774966
775601
779452
782767
783785
784230
787130
787887
791049
794470
795765
802884
807506
811777
812458
823422
825177
827370
]
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 (388350 , 418879 , 423361 , 434953 , 436423 , 441915 , 442143 , 456367 , 457014 , 457176 , 457545 , 463072 , 472985 , 482053 , 484218 , 488703 , 495663 , 495823 , 507285 , 514346 , 518077 , 525452 , 528055 , 529155 , 555642 , 559725 , 560833 , 562402 , 593279 , 606338 , 617587 , 628463 , 660292 , 715246 , 715810 , 722101 , 727060 , 734017 , 742919 , 744522 , 748662 , 761681 , 763304 , 764511 , 774966 , 775601 , 779452 , 782767 , 783785 , 784230 , 787130 , 787887 , 791049 , 794470 , 795765 , 802884 , 807506 , 811777 , 812458 , 823422 , 825177 , 827370 );
Copy