3
11.65 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
648545
538838
556789
598768
567729
672754
538908
717607
724241
648963
599566
652173
622366
644127
623934
597031
800530
567726
511388
652983
725518
544272
551836
662397
567112
651154
703048
545345
800625
542778
542198
672742
651604
581274
683297
699718
716409
719097
717859
542486
590696
624787
592500
541368
556525
579296
800422
652223
556783
624152
726457
646895
699397
652542
543579
576723
559119
559378
511392
563441
544472
541864
577371
541646
652539
]
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 (648545 , 538838 , 556789 , 598768 , 567729 , 672754 , 538908 , 717607 , 724241 , 648963 , 599566 , 652173 , 622366 , 644127 , 623934 , 597031 , 800530 , 567726 , 511388 , 652983 , 725518 , 544272 , 551836 , 662397 , 567112 , 651154 , 703048 , 545345 , 800625 , 542778 , 542198 , 672742 , 651604 , 581274 , 683297 , 699718 , 716409 , 719097 , 717859 , 542486 , 590696 , 624787 , 592500 , 541368 , 556525 , 579296 , 800422 , 652223 , 556783 , 624152 , 726457 , 646895 , 699397 , 652542 , 543579 , 576723 , 559119 , 559378 , 511392 , 563441 , 544472 , 541864 , 577371 , 541646 , 652539 );
Copy
4
2.78 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
511388
511392
538838
538908
541368
541646
541864
542198
542486
542778
543579
544272
544472
545345
551836
556525
556783
556789
559119
559378
563441
567112
567726
567729
576723
577371
579296
581274
590696
592500
597031
598768
599566
622366
623934
624152
624787
644127
646895
648545
648963
651154
651604
652173
652223
652539
652542
652983
662397
672742
672754
683297
699397
699718
703048
716409
717607
717859
719097
724241
725518
726457
800422
800530
800625
]
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 (511388 , 511392 , 538838 , 538908 , 541368 , 541646 , 541864 , 542198 , 542486 , 542778 , 543579 , 544272 , 544472 , 545345 , 551836 , 556525 , 556783 , 556789 , 559119 , 559378 , 563441 , 567112 , 567726 , 567729 , 576723 , 577371 , 579296 , 581274 , 590696 , 592500 , 597031 , 598768 , 599566 , 622366 , 623934 , 624152 , 624787 , 644127 , 646895 , 648545 , 648963 , 651154 , 651604 , 652173 , 652223 , 652539 , 652542 , 652983 , 662397 , 672742 , 672754 , 683297 , 699397 , 699718 , 703048 , 716409 , 717607 , 717859 , 719097 , 724241 , 725518 , 726457 , 800422 , 800530 , 800625 );
Copy
5
83.20 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
511388
511392
538838
538908
541368
541646
541864
542198
542486
542778
543579
544272
544472
545345
551836
556525
556783
556789
559119
559378
563441
567112
567726
567729
576723
577371
579296
581274
590696
592500
597031
598768
599566
622366
623934
624152
624787
644127
646895
648545
648963
651154
651604
652173
652223
652539
652542
652983
662397
672742
672754
683297
699397
699718
703048
716409
717607
717859
719097
724241
725518
726457
800422
800530
800625
]
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 (511388 , 511392 , 538838 , 538908 , 541368 , 541646 , 541864 , 542198 , 542486 , 542778 , 543579 , 544272 , 544472 , 545345 , 551836 , 556525 , 556783 , 556789 , 559119 , 559378 , 563441 , 567112 , 567726 , 567729 , 576723 , 577371 , 579296 , 581274 , 590696 , 592500 , 597031 , 598768 , 599566 , 622366 , 623934 , 624152 , 624787 , 644127 , 646895 , 648545 , 648963 , 651154 , 651604 , 652173 , 652223 , 652539 , 652542 , 652983 , 662397 , 672742 , 672754 , 683297 , 699397 , 699718 , 703048 , 716409 , 717607 , 717859 , 719097 , 724241 , 725518 , 726457 , 800422 , 800530 , 800625 );
Copy