3
13.53 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
687551
691200
593299
607237
586465
807687
607618
454262
486672
489485
492515
515229
492002
524016
527245
498022
553703
498030
501465
519061
520312
681478
688332
586472
586494
480372
462531
443153
480367
443799
485708
487325
447458
498038
506576
498054
558904
674415
691196
605383
622331
607344
468076
424401
450901
484713
494770
553717
581193
573315
698933
712696
608395
491871
498496
545695
586429
610686
801907
450998
506803
494778
498039
515119
515122
554386
511009
578454
618326
586484
]
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 (687551 , 691200 , 593299 , 607237 , 586465 , 807687 , 607618 , 454262 , 486672 , 489485 , 492515 , 515229 , 492002 , 524016 , 527245 , 498022 , 553703 , 498030 , 501465 , 519061 , 520312 , 681478 , 688332 , 586472 , 586494 , 480372 , 462531 , 443153 , 480367 , 443799 , 485708 , 487325 , 447458 , 498038 , 506576 , 498054 , 558904 , 674415 , 691196 , 605383 , 622331 , 607344 , 468076 , 424401 , 450901 , 484713 , 494770 , 553717 , 581193 , 573315 , 698933 , 712696 , 608395 , 491871 , 498496 , 545695 , 586429 , 610686 , 801907 , 450998 , 506803 , 494778 , 498039 , 515119 , 515122 , 554386 , 511009 , 578454 , 618326 , 586484 );
Copy
4
2.46 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
424401
443153
443799
447458
450901
450998
454262
462531
468076
480367
480372
484713
485708
486672
487325
489485
491871
492002
492515
494770
494778
498022
498030
498038
498039
498054
498496
501465
506576
506803
511009
515119
515122
515229
519061
520312
524016
527245
545695
553703
553717
554386
558904
573315
578454
581193
586429
586465
586472
586484
586494
593299
605383
607237
607344
607618
608395
610686
618326
622331
674415
681478
687551
688332
691196
691200
698933
712696
801907
807687
]
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 (424401 , 443153 , 443799 , 447458 , 450901 , 450998 , 454262 , 462531 , 468076 , 480367 , 480372 , 484713 , 485708 , 486672 , 487325 , 489485 , 491871 , 492002 , 492515 , 494770 , 494778 , 498022 , 498030 , 498038 , 498039 , 498054 , 498496 , 501465 , 506576 , 506803 , 511009 , 515119 , 515122 , 515229 , 519061 , 520312 , 524016 , 527245 , 545695 , 553703 , 553717 , 554386 , 558904 , 573315 , 578454 , 581193 , 586429 , 586465 , 586472 , 586484 , 586494 , 593299 , 605383 , 607237 , 607344 , 607618 , 608395 , 610686 , 618326 , 622331 , 674415 , 681478 , 687551 , 688332 , 691196 , 691200 , 698933 , 712696 , 801907 , 807687 );
Copy
5
95.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
424401
443153
443799
447458
450901
450998
454262
462531
468076
480367
480372
484713
485708
486672
487325
489485
491871
492002
492515
494770
494778
498022
498030
498038
498039
498054
498496
501465
506576
506803
511009
515119
515122
515229
519061
520312
524016
527245
545695
553703
553717
554386
558904
573315
578454
581193
586429
586465
586472
586484
586494
593299
605383
607237
607344
607618
608395
610686
618326
622331
674415
681478
687551
688332
691196
691200
698933
712696
801907
807687
]
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 (424401 , 443153 , 443799 , 447458 , 450901 , 450998 , 454262 , 462531 , 468076 , 480367 , 480372 , 484713 , 485708 , 486672 , 487325 , 489485 , 491871 , 492002 , 492515 , 494770 , 494778 , 498022 , 498030 , 498038 , 498039 , 498054 , 498496 , 501465 , 506576 , 506803 , 511009 , 515119 , 515122 , 515229 , 519061 , 520312 , 524016 , 527245 , 545695 , 553703 , 553717 , 554386 , 558904 , 573315 , 578454 , 581193 , 586429 , 586465 , 586472 , 586484 , 586494 , 593299 , 605383 , 607237 , 607344 , 607618 , 608395 , 610686 , 618326 , 622331 , 674415 , 681478 , 687551 , 688332 , 691196 , 691200 , 698933 , 712696 , 801907 , 807687 );
Copy