3
11.39 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
815906
757950
789285
818772
790401
723263
781216
726022
603806
767195
768179
777944
649124
750830
766082
758206
777973
636980
603823
605963
759422
715425
621535
785507
794688
506254
816015
613433
613345
707313
812497
487207
466425
682216
743380
457554
684024
571671
521344
447129
467361
776839
395669
512964
439508
556490
623485
586403
467471
457313
479352
511217
568973
744704
615738
586483
524365
465780
562892
603004
522056
562890
540688
478065
630859
523139
620243
521739
]
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 (815906 , 757950 , 789285 , 818772 , 790401 , 723263 , 781216 , 726022 , 603806 , 767195 , 768179 , 777944 , 649124 , 750830 , 766082 , 758206 , 777973 , 636980 , 603823 , 605963 , 759422 , 715425 , 621535 , 785507 , 794688 , 506254 , 816015 , 613433 , 613345 , 707313 , 812497 , 487207 , 466425 , 682216 , 743380 , 457554 , 684024 , 571671 , 521344 , 447129 , 467361 , 776839 , 395669 , 512964 , 439508 , 556490 , 623485 , 586403 , 467471 , 457313 , 479352 , 511217 , 568973 , 744704 , 615738 , 586483 , 524365 , 465780 , 562892 , 603004 , 522056 , 562890 , 540688 , 478065 , 630859 , 523139 , 620243 , 521739 );
Copy
4
2.84 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
395669
439508
447129
457313
457554
465780
466425
467361
467471
478065
479352
487207
506254
511217
512964
521344
521739
522056
523139
524365
540688
556490
562890
562892
568973
571671
586403
586483
603004
603806
603823
605963
613345
613433
615738
620243
621535
623485
630859
636980
649124
682216
684024
707313
715425
723263
726022
743380
744704
750830
757950
758206
759422
766082
767195
768179
776839
777973
781216
785507
789285
790401
794688
812497
815906
816015
818772
]
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 (395669 , 439508 , 447129 , 457313 , 457554 , 465780 , 466425 , 467361 , 467471 , 478065 , 479352 , 487207 , 506254 , 511217 , 512964 , 521344 , 521739 , 522056 , 523139 , 524365 , 540688 , 556490 , 562890 , 562892 , 568973 , 571671 , 586403 , 586483 , 603004 , 603806 , 603823 , 605963 , 613345 , 613433 , 615738 , 620243 , 621535 , 623485 , 630859 , 636980 , 649124 , 682216 , 684024 , 707313 , 715425 , 723263 , 726022 , 743380 , 744704 , 750830 , 757950 , 758206 , 759422 , 766082 , 767195 , 768179 , 776839 , 777973 , 781216 , 785507 , 789285 , 790401 , 794688 , 812497 , 815906 , 816015 , 818772 );
Copy
5
96.28 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
395669
439508
447129
457313
457554
465780
466425
467361
467471
478065
479352
487207
506254
511217
512964
521344
521739
522056
523139
524365
540688
556490
562890
562892
568973
571671
586403
586483
603004
603806
603823
605963
613345
613433
615738
620243
621535
623485
630859
636980
649124
682216
684024
707313
715425
723263
726022
743380
744704
750830
757950
758206
759422
766082
767195
768179
776839
777973
781216
785507
789285
790401
794688
812497
815906
816015
818772
]
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 (395669 , 439508 , 447129 , 457313 , 457554 , 465780 , 466425 , 467361 , 467471 , 478065 , 479352 , 487207 , 506254 , 511217 , 512964 , 521344 , 521739 , 522056 , 523139 , 524365 , 540688 , 556490 , 562890 , 562892 , 568973 , 571671 , 586403 , 586483 , 603004 , 603806 , 603823 , 605963 , 613345 , 613433 , 615738 , 620243 , 621535 , 623485 , 630859 , 636980 , 649124 , 682216 , 684024 , 707313 , 715425 , 723263 , 726022 , 743380 , 744704 , 750830 , 757950 , 758206 , 759422 , 766082 , 767195 , 768179 , 776839 , 777973 , 781216 , 785507 , 789285 , 790401 , 794688 , 812497 , 815906 , 816015 , 818772 );
Copy