4
13.68 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
500938
784632
398567
827184
579382
550325
472678
474851
475662
475678
478339
540560
819614
476320
803373
808161
452637
475660
475676
485939
580841
474826
530360
574403
580365
776839
789693
471981
483152
442652
465147
475677
475683
543938
529341
466911
447705
476325
548231
548068
549311
612171
466989
482304
390447
413461
475679
486432
510872
517736
517735
551931
582972
590722
454241
472593
519705
443807
489831
467839
493197
511033
451950
413454
525484
496548
485777
450108
465317
468928
466982
748256
574384
475294
]
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 (500938 , 784632 , 398567 , 827184 , 579382 , 550325 , 472678 , 474851 , 475662 , 475678 , 478339 , 540560 , 819614 , 476320 , 803373 , 808161 , 452637 , 475660 , 475676 , 485939 , 580841 , 474826 , 530360 , 574403 , 580365 , 776839 , 789693 , 471981 , 483152 , 442652 , 465147 , 475677 , 475683 , 543938 , 529341 , 466911 , 447705 , 476325 , 548231 , 548068 , 549311 , 612171 , 466989 , 482304 , 390447 , 413461 , 475679 , 486432 , 510872 , 517736 , 517735 , 551931 , 582972 , 590722 , 454241 , 472593 , 519705 , 443807 , 489831 , 467839 , 493197 , 511033 , 451950 , 413454 , 525484 , 496548 , 485777 , 450108 , 465317 , 468928 , 466982 , 748256 , 574384 , 475294 );
Copy
5
2.26 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
390447
398567
413454
413461
442652
443807
447705
450108
451950
452637
454241
465147
465317
466911
466982
466989
467839
468928
471981
472593
472678
474826
474851
475294
475660
475662
475676
475677
475678
475679
475683
476320
476325
478339
482304
483152
485777
485939
486432
489831
493197
496548
500938
510872
511033
517735
517736
519705
525484
529341
530360
540560
543938
548068
548231
549311
550325
551931
574384
574403
579382
580365
580841
582972
590722
612171
748256
776839
784632
789693
803373
808161
819614
827184
]
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 (390447 , 398567 , 413454 , 413461 , 442652 , 443807 , 447705 , 450108 , 451950 , 452637 , 454241 , 465147 , 465317 , 466911 , 466982 , 466989 , 467839 , 468928 , 471981 , 472593 , 472678 , 474826 , 474851 , 475294 , 475660 , 475662 , 475676 , 475677 , 475678 , 475679 , 475683 , 476320 , 476325 , 478339 , 482304 , 483152 , 485777 , 485939 , 486432 , 489831 , 493197 , 496548 , 500938 , 510872 , 511033 , 517735 , 517736 , 519705 , 525484 , 529341 , 530360 , 540560 , 543938 , 548068 , 548231 , 549311 , 550325 , 551931 , 574384 , 574403 , 579382 , 580365 , 580841 , 582972 , 590722 , 612171 , 748256 , 776839 , 784632 , 789693 , 803373 , 808161 , 819614 , 827184 );
Copy
6
94.32 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
390447
398567
413454
413461
442652
443807
447705
450108
451950
452637
454241
465147
465317
466911
466982
466989
467839
468928
471981
472593
472678
474826
474851
475294
475660
475662
475676
475677
475678
475679
475683
476320
476325
478339
482304
483152
485777
485939
486432
489831
493197
496548
500938
510872
511033
517735
517736
519705
525484
529341
530360
540560
543938
548068
548231
549311
550325
551931
574384
574403
579382
580365
580841
582972
590722
612171
748256
776839
784632
789693
803373
808161
819614
827184
]
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 (390447 , 398567 , 413454 , 413461 , 442652 , 443807 , 447705 , 450108 , 451950 , 452637 , 454241 , 465147 , 465317 , 466911 , 466982 , 466989 , 467839 , 468928 , 471981 , 472593 , 472678 , 474826 , 474851 , 475294 , 475660 , 475662 , 475676 , 475677 , 475678 , 475679 , 475683 , 476320 , 476325 , 478339 , 482304 , 483152 , 485777 , 485939 , 486432 , 489831 , 493197 , 496548 , 500938 , 510872 , 511033 , 517735 , 517736 , 519705 , 525484 , 529341 , 530360 , 540560 , 543938 , 548068 , 548231 , 549311 , 550325 , 551931 , 574384 , 574403 , 579382 , 580365 , 580841 , 582972 , 590722 , 612171 , 748256 , 776839 , 784632 , 789693 , 803373 , 808161 , 819614 , 827184 );
Copy