3
10.29 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
804222
696314
776455
800671
676387
631985
605167
476320
802431
443172
673654
601041
788293
812645
673659
557190
557194
673656
758434
799208
804215
499141
714748
716307
595758
618969
724522
673653
673655
724504
814865
529409
724493
525189
557181
675458
612381
446898
443181
434239
634858
434044
433658
646938
398522
394552
433697
443187
513112
433684
433685
434066
450827
443941
434091
454190
460273
407589
433664
446294
443171
452146
410003
418953
]
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 (804222 , 696314 , 776455 , 800671 , 676387 , 631985 , 605167 , 476320 , 802431 , 443172 , 673654 , 601041 , 788293 , 812645 , 673659 , 557190 , 557194 , 673656 , 758434 , 799208 , 804215 , 499141 , 714748 , 716307 , 595758 , 618969 , 724522 , 673653 , 673655 , 724504 , 814865 , 529409 , 724493 , 525189 , 557181 , 675458 , 612381 , 446898 , 443181 , 434239 , 634858 , 434044 , 433658 , 646938 , 398522 , 394552 , 433697 , 443187 , 513112 , 433684 , 433685 , 434066 , 450827 , 443941 , 434091 , 454190 , 460273 , 407589 , 433664 , 446294 , 443171 , 452146 , 410003 , 418953 );
Copy
4
2.70 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
394552
398522
407589
410003
418953
433658
433664
433684
433685
433697
434044
434066
434091
434239
443171
443172
443181
443187
443941
446294
446898
450827
452146
454190
460273
476320
499141
513112
525189
529409
557181
557190
557194
595758
601041
605167
612381
618969
631985
634858
646938
673653
673654
673655
673656
673659
675458
676387
696314
714748
716307
724493
724504
724522
758434
776455
788293
799208
800671
802431
804215
804222
812645
814865
]
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 (394552 , 398522 , 407589 , 410003 , 418953 , 433658 , 433664 , 433684 , 433685 , 433697 , 434044 , 434066 , 434091 , 434239 , 443171 , 443172 , 443181 , 443187 , 443941 , 446294 , 446898 , 450827 , 452146 , 454190 , 460273 , 476320 , 499141 , 513112 , 525189 , 529409 , 557181 , 557190 , 557194 , 595758 , 601041 , 605167 , 612381 , 618969 , 631985 , 634858 , 646938 , 673653 , 673654 , 673655 , 673656 , 673659 , 675458 , 676387 , 696314 , 714748 , 716307 , 724493 , 724504 , 724522 , 758434 , 776455 , 788293 , 799208 , 800671 , 802431 , 804215 , 804222 , 812645 , 814865 );
Copy
5
107.76 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
394552
398522
407589
410003
418953
433658
433664
433684
433685
433697
434044
434066
434091
434239
443171
443172
443181
443187
443941
446294
446898
450827
452146
454190
460273
476320
499141
513112
525189
529409
557181
557190
557194
595758
601041
605167
612381
618969
631985
634858
646938
673653
673654
673655
673656
673659
675458
676387
696314
714748
716307
724493
724504
724522
758434
776455
788293
799208
800671
802431
804215
804222
812645
814865
]
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 (394552 , 398522 , 407589 , 410003 , 418953 , 433658 , 433664 , 433684 , 433685 , 433697 , 434044 , 434066 , 434091 , 434239 , 443171 , 443172 , 443181 , 443187 , 443941 , 446294 , 446898 , 450827 , 452146 , 454190 , 460273 , 476320 , 499141 , 513112 , 525189 , 529409 , 557181 , 557190 , 557194 , 595758 , 601041 , 605167 , 612381 , 618969 , 631985 , 634858 , 646938 , 673653 , 673654 , 673655 , 673656 , 673659 , 675458 , 676387 , 696314 , 714748 , 716307 , 724493 , 724504 , 724522 , 758434 , 776455 , 788293 , 799208 , 800671 , 802431 , 804215 , 804222 , 812645 , 814865 );
Copy