65.20 ms (70.17%)
1
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
385911
391079
391092
402107
402114
407266
412583
414636
415005
416303
420212
421603
422686
430404
443799
446084
447125
447677
449883
459435
468760
472849
472956
480367
480461
481339
482982
484713
486646
486694
501465
502197
502663
508673
513207
515122
515281
516103
516445
517144
520313
520797
521701
524496
542187
542954
557125
560507
563216
563489
565046
565061
572014
585144
587185
587833
593343
593534
605182
607618
624214
628315
667695
814829
814921
]
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 (385911 , 391079 , 391092 , 402107 , 402114 , 407266 , 412583 , 414636 , 415005 , 416303 , 420212 , 421603 , 422686 , 430404 , 443799 , 446084 , 447125 , 447677 , 449883 , 459435 , 468760 , 472849 , 472956 , 480367 , 480461 , 481339 , 482982 , 484713 , 486646 , 486694 , 501465 , 502197 , 502663 , 508673 , 513207 , 515122 , 515281 , 516103 , 516445 , 517144 , 520313 , 520797 , 521701 , 524496 , 542187 , 542954 , 557125 , 560507 , 563216 , 563489 , 565046 , 565061 , 572014 , 585144 , 587185 , 587833 , 593343 , 593534 , 605182 , 607618 , 624214 , 628315 , 667695 , 814829 , 814921 );
Copy
12.35 ms (13.29%)
1
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
515122
587185
593343
472956
391079
422686
814829
814921
447125
449883
481339
524496
486694
560507
565046
565061
628315
607618
420212
414636
517144
502663
515281
605182
407266
459435
468760
472849
501465
563489
557125
667695
593534
391092
416303
480461
480367
443799
502197
520313
508673
585144
520797
482982
563216
484713
486646
587833
447677
446084
516103
421603
513207
521701
402107
412583
542954
624214
430404
516445
402114
542187
385911
415005
572014
]
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 (515122 , 587185 , 593343 , 472956 , 391079 , 422686 , 814829 , 814921 , 447125 , 449883 , 481339 , 524496 , 486694 , 560507 , 565046 , 565061 , 628315 , 607618 , 420212 , 414636 , 517144 , 502663 , 515281 , 605182 , 407266 , 459435 , 468760 , 472849 , 501465 , 563489 , 557125 , 667695 , 593534 , 391092 , 416303 , 480461 , 480367 , 443799 , 502197 , 520313 , 508673 , 585144 , 520797 , 482982 , 563216 , 484713 , 486646 , 587833 , 447677 , 446084 , 516103 , 421603 , 513207 , 521701 , 402107 , 412583 , 542954 , 624214 , 430404 , 516445 , 402114 , 542187 , 385911 , 415005 , 572014 );
Copy
1.80 ms (1.94%)
1
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
385911
391079
391092
402107
402114
407266
412583
414636
415005
416303
420212
421603
422686
430404
443799
446084
447125
447677
449883
459435
468760
472849
472956
480367
480461
481339
482982
484713
486646
486694
501465
502197
502663
508673
513207
515122
515281
516103
516445
517144
520313
520797
521701
524496
542187
542954
557125
560507
563216
563489
565046
565061
572014
585144
587185
587833
593343
593534
605182
607618
624214
628315
667695
814829
814921
]
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 (385911 , 391079 , 391092 , 402107 , 402114 , 407266 , 412583 , 414636 , 415005 , 416303 , 420212 , 421603 , 422686 , 430404 , 443799 , 446084 , 447125 , 447677 , 449883 , 459435 , 468760 , 472849 , 472956 , 480367 , 480461 , 481339 , 482982 , 484713 , 486646 , 486694 , 501465 , 502197 , 502663 , 508673 , 513207 , 515122 , 515281 , 516103 , 516445 , 517144 , 520313 , 520797 , 521701 , 524496 , 542187 , 542954 , 557125 , 560507 , 563216 , 563489 , 565046 , 565061 , 572014 , 585144 , 587185 , 587833 , 593343 , 593534 , 605182 , 607618 , 624214 , 628315 , 667695 , 814829 , 814921 );
Copy