78.52 ms (74.86%)
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
408281
419793
431448
432933
445047
447951
447952
448199
448405
452623
452728
456117
459502
465660
468990
471959
472766
478660
478664
496206
497395
498388
501579
505106
510851
516618
517019
517802
520989
523264
524841
529651
530761
533053
533950
533973
536215
537253
541549
545262
550067
563936
568573
570728
578512
579621
592770
604802
613502
615829
623701
624601
626388
628401
628424
632277
652470
724177
734422
734428
748538
765763
766634
768157
775828
787783
797519
810468
819593
]
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 (408281 , 419793 , 431448 , 432933 , 445047 , 447951 , 447952 , 448199 , 448405 , 452623 , 452728 , 456117 , 459502 , 465660 , 468990 , 471959 , 472766 , 478660 , 478664 , 496206 , 497395 , 498388 , 501579 , 505106 , 510851 , 516618 , 517019 , 517802 , 520989 , 523264 , 524841 , 529651 , 530761 , 533053 , 533950 , 533973 , 536215 , 537253 , 541549 , 545262 , 550067 , 563936 , 568573 , 570728 , 578512 , 579621 , 592770 , 604802 , 613502 , 615829 , 623701 , 624601 , 626388 , 628401 , 628424 , 632277 , 652470 , 724177 , 734422 , 734428 , 748538 , 765763 , 766634 , 768157 , 775828 , 787783 , 797519 , 810468 , 819593 );
Copy
8.99 ms (8.57%)
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
768157
765763
766634
775828
478660
419793
456117
452728
408281
819593
465660
497395
517802
570728
652470
604802
787783
810468
734428
734422
748538
624601
452623
459502
501579
533973
448199
478664
505106
524841
545262
541549
579621
563936
578512
613502
623701
797519
472766
447951
432933
448405
516618
498388
517019
523264
510851
520989
537253
626388
724177
468990
471959
529651
445047
496206
536215
568573
628401
533053
550067
628424
592770
632277
615829
533950
530761
431448
447952
]
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 (768157 , 765763 , 766634 , 775828 , 478660 , 419793 , 456117 , 452728 , 408281 , 819593 , 465660 , 497395 , 517802 , 570728 , 652470 , 604802 , 787783 , 810468 , 734428 , 734422 , 748538 , 624601 , 452623 , 459502 , 501579 , 533973 , 448199 , 478664 , 505106 , 524841 , 545262 , 541549 , 579621 , 563936 , 578512 , 613502 , 623701 , 797519 , 472766 , 447951 , 432933 , 448405 , 516618 , 498388 , 517019 , 523264 , 510851 , 520989 , 537253 , 626388 , 724177 , 468990 , 471959 , 529651 , 445047 , 496206 , 536215 , 568573 , 628401 , 533053 , 550067 , 628424 , 592770 , 632277 , 615829 , 533950 , 530761 , 431448 , 447952 );
Copy
2.66 ms (2.54%)
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
408281
419793
431448
432933
445047
447951
447952
448199
448405
452623
452728
456117
459502
465660
468990
471959
472766
478660
478664
496206
497395
498388
501579
505106
510851
516618
517019
517802
520989
523264
524841
529651
530761
533053
533950
533973
536215
537253
541549
545262
550067
563936
568573
570728
578512
579621
592770
604802
613502
615829
623701
624601
626388
628401
628424
632277
652470
724177
734422
734428
748538
765763
766634
768157
775828
787783
797519
810468
819593
]
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 (408281 , 419793 , 431448 , 432933 , 445047 , 447951 , 447952 , 448199 , 448405 , 452623 , 452728 , 456117 , 459502 , 465660 , 468990 , 471959 , 472766 , 478660 , 478664 , 496206 , 497395 , 498388 , 501579 , 505106 , 510851 , 516618 , 517019 , 517802 , 520989 , 523264 , 524841 , 529651 , 530761 , 533053 , 533950 , 533973 , 536215 , 537253 , 541549 , 545262 , 550067 , 563936 , 568573 , 570728 , 578512 , 579621 , 592770 , 604802 , 613502 , 615829 , 623701 , 624601 , 626388 , 628401 , 628424 , 632277 , 652470 , 724177 , 734422 , 734428 , 748538 , 765763 , 766634 , 768157 , 775828 , 787783 , 797519 , 810468 , 819593 );
Copy