3
10.13 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
391427
824450
827911
646104
633903
750864
398525
593031
597924
733038
717442
395668
475274
710297
590314
585157
812609
732984
750910
721122
603404
592123
725177
740891
605234
183022
388578
506743
735545
738476
393855
52454
387765
821189
547653
572714
578137
551828
618448
750081
383448
382485
496619
529967
554493
563409
582805
603417
358864
393572
527423
571766
547709
554495
603387
630558
397204
45799
544112
548071
565152
390629
615394
157194
512867
491771
594060
630919
503658
]
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 (391427 , 824450 , 827911 , 646104 , 633903 , 750864 , 398525 , 593031 , 597924 , 733038 , 717442 , 395668 , 475274 , 710297 , 590314 , 585157 , 812609 , 732984 , 750910 , 721122 , 603404 , 592123 , 725177 , 740891 , 605234 , 183022 , 388578 , 506743 , 735545 , 738476 , 393855 , 52454 , 387765 , 821189 , 547653 , 572714 , 578137 , 551828 , 618448 , 750081 , 383448 , 382485 , 496619 , 529967 , 554493 , 563409 , 582805 , 603417 , 358864 , 393572 , 527423 , 571766 , 547709 , 554495 , 603387 , 630558 , 397204 , 45799 , 544112 , 548071 , 565152 , 390629 , 615394 , 157194 , 512867 , 491771 , 594060 , 630919 , 503658 );
Copy
4
3.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
45799
52454
157194
183022
358864
382485
383448
387765
388578
390629
391427
393572
393855
395668
397204
398525
475274
491771
496619
503658
506743
512867
527423
529967
544112
547653
547709
548071
551828
554493
554495
563409
565152
571766
572714
578137
582805
585157
590314
592123
593031
594060
597924
603387
603404
603417
605234
615394
618448
630558
630919
633903
646104
710297
717442
721122
725177
732984
733038
735545
738476
740891
750081
750864
750910
812609
821189
824450
827911
]
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 (45799 , 52454 , 157194 , 183022 , 358864 , 382485 , 383448 , 387765 , 388578 , 390629 , 391427 , 393572 , 393855 , 395668 , 397204 , 398525 , 475274 , 491771 , 496619 , 503658 , 506743 , 512867 , 527423 , 529967 , 544112 , 547653 , 547709 , 548071 , 551828 , 554493 , 554495 , 563409 , 565152 , 571766 , 572714 , 578137 , 582805 , 585157 , 590314 , 592123 , 593031 , 594060 , 597924 , 603387 , 603404 , 603417 , 605234 , 615394 , 618448 , 630558 , 630919 , 633903 , 646104 , 710297 , 717442 , 721122 , 725177 , 732984 , 733038 , 735545 , 738476 , 740891 , 750081 , 750864 , 750910 , 812609 , 821189 , 824450 , 827911 );
Copy
5
102.10 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
45799
52454
157194
183022
358864
382485
383448
387765
388578
390629
391427
393572
393855
395668
397204
398525
475274
491771
496619
503658
506743
512867
527423
529967
544112
547653
547709
548071
551828
554493
554495
563409
565152
571766
572714
578137
582805
585157
590314
592123
593031
594060
597924
603387
603404
603417
605234
615394
618448
630558
630919
633903
646104
710297
717442
721122
725177
732984
733038
735545
738476
740891
750081
750864
750910
812609
821189
824450
827911
]
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 (45799 , 52454 , 157194 , 183022 , 358864 , 382485 , 383448 , 387765 , 388578 , 390629 , 391427 , 393572 , 393855 , 395668 , 397204 , 398525 , 475274 , 491771 , 496619 , 503658 , 506743 , 512867 , 527423 , 529967 , 544112 , 547653 , 547709 , 548071 , 551828 , 554493 , 554495 , 563409 , 565152 , 571766 , 572714 , 578137 , 582805 , 585157 , 590314 , 592123 , 593031 , 594060 , 597924 , 603387 , 603404 , 603417 , 605234 , 615394 , 618448 , 630558 , 630919 , 633903 , 646104 , 710297 , 717442 , 721122 , 725177 , 732984 , 733038 , 735545 , 738476 , 740891 , 750081 , 750864 , 750910 , 812609 , 821189 , 824450 , 827911 );
Copy