3
11.31 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
817371
578072
507703
511030
513437
651669
608338
639257
511031
511033
571024
770937
819228
785662
589199
571028
732161
681147
618115
757095
714319
664595
816710
818607
812715
814638
558610
448309
465650
580246
557490
664559
586570
558315
389733
511027
801396
802845
450198
552986
601281
810905
714380
818471
464211
810697
784527
810983
811005
508795
791745
507616
545480
663212
609161
468132
644271
596227
603215
808668
455296
418478
567723
428827
541872
687507
593109
511028
448813
480370
601040
593863
526857
565154
447810
]
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 (817371 , 578072 , 507703 , 511030 , 513437 , 651669 , 608338 , 639257 , 511031 , 511033 , 571024 , 770937 , 819228 , 785662 , 589199 , 571028 , 732161 , 681147 , 618115 , 757095 , 714319 , 664595 , 816710 , 818607 , 812715 , 814638 , 558610 , 448309 , 465650 , 580246 , 557490 , 664559 , 586570 , 558315 , 389733 , 511027 , 801396 , 802845 , 450198 , 552986 , 601281 , 810905 , 714380 , 818471 , 464211 , 810697 , 784527 , 810983 , 811005 , 508795 , 791745 , 507616 , 545480 , 663212 , 609161 , 468132 , 644271 , 596227 , 603215 , 808668 , 455296 , 418478 , 567723 , 428827 , 541872 , 687507 , 593109 , 511028 , 448813 , 480370 , 601040 , 593863 , 526857 , 565154 , 447810 );
Copy
4
3.20 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
389733
418478
428827
447810
448309
448813
450198
455296
464211
465650
468132
480370
507616
507703
508795
511027
511028
511030
511031
511033
513437
526857
541872
545480
552986
557490
558315
558610
565154
567723
571024
571028
578072
580246
586570
589199
593109
593863
596227
601040
601281
603215
608338
609161
618115
639257
644271
651669
663212
664559
664595
681147
687507
714319
714380
732161
757095
770937
784527
785662
791745
801396
802845
808668
810697
810905
810983
811005
812715
814638
816710
817371
818471
818607
819228
]
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 (389733 , 418478 , 428827 , 447810 , 448309 , 448813 , 450198 , 455296 , 464211 , 465650 , 468132 , 480370 , 507616 , 507703 , 508795 , 511027 , 511028 , 511030 , 511031 , 511033 , 513437 , 526857 , 541872 , 545480 , 552986 , 557490 , 558315 , 558610 , 565154 , 567723 , 571024 , 571028 , 578072 , 580246 , 586570 , 589199 , 593109 , 593863 , 596227 , 601040 , 601281 , 603215 , 608338 , 609161 , 618115 , 639257 , 644271 , 651669 , 663212 , 664559 , 664595 , 681147 , 687507 , 714319 , 714380 , 732161 , 757095 , 770937 , 784527 , 785662 , 791745 , 801396 , 802845 , 808668 , 810697 , 810905 , 810983 , 811005 , 812715 , 814638 , 816710 , 817371 , 818471 , 818607 , 819228 );
Copy
5
130.00 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
389733
418478
428827
447810
448309
448813
450198
455296
464211
465650
468132
480370
507616
507703
508795
511027
511028
511030
511031
511033
513437
526857
541872
545480
552986
557490
558315
558610
565154
567723
571024
571028
578072
580246
586570
589199
593109
593863
596227
601040
601281
603215
608338
609161
618115
639257
644271
651669
663212
664559
664595
681147
687507
714319
714380
732161
757095
770937
784527
785662
791745
801396
802845
808668
810697
810905
810983
811005
812715
814638
816710
817371
818471
818607
819228
]
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 (389733 , 418478 , 428827 , 447810 , 448309 , 448813 , 450198 , 455296 , 464211 , 465650 , 468132 , 480370 , 507616 , 507703 , 508795 , 511027 , 511028 , 511030 , 511031 , 511033 , 513437 , 526857 , 541872 , 545480 , 552986 , 557490 , 558315 , 558610 , 565154 , 567723 , 571024 , 571028 , 578072 , 580246 , 586570 , 589199 , 593109 , 593863 , 596227 , 601040 , 601281 , 603215 , 608338 , 609161 , 618115 , 639257 , 644271 , 651669 , 663212 , 664559 , 664595 , 681147 , 687507 , 714319 , 714380 , 732161 , 757095 , 770937 , 784527 , 785662 , 791745 , 801396 , 802845 , 808668 , 810697 , 810905 , 810983 , 811005 , 812715 , 814638 , 816710 , 817371 , 818471 , 818607 , 819228 );
Copy