100.50 ms (60.28%)
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
400396
402335
418797
426794
434301
434781
434841
437146
439906
442353
442472
442669
446455
447792
448440
451330
461650
463360
467993
472384
476614
485641
487431
488152
493911
509545
513404
513865
523260
523636
525051
526249
528798
552295
554185
555465
558654
588111
589110
591093
601588
613965
616758
624971
635122
701522
714756
715457
723264
723368
723805
728667
761078
764057
778121
779721
784970
790498
793585
794640
804807
807653
811042
811243
818233
]
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 (400396 , 402335 , 418797 , 426794 , 434301 , 434781 , 434841 , 437146 , 439906 , 442353 , 442472 , 442669 , 446455 , 447792 , 448440 , 451330 , 461650 , 463360 , 467993 , 472384 , 476614 , 485641 , 487431 , 488152 , 493911 , 509545 , 513404 , 513865 , 523260 , 523636 , 525051 , 526249 , 528798 , 552295 , 554185 , 555465 , 558654 , 588111 , 589110 , 591093 , 601588 , 613965 , 616758 , 624971 , 635122 , 701522 , 714756 , 715457 , 723264 , 723368 , 723805 , 728667 , 761078 , 764057 , 778121 , 779721 , 784970 , 790498 , 793585 , 794640 , 804807 , 807653 , 811042 , 811243 , 818233 );
Copy
10.96 ms (6.58%)
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
778121
526249
818233
723805
794640
793585
613965
635122
476614
485641
764681
715457
804807
442472
764057
779721
728667
728648
714756
400396
447792
601588
790498
811042
784970
723264
723368
487431
554185
624971
741836
426794
811243
513865
402335
528798
701522
761078
807653
552295
418797
434841
451330
461650
509545
591093
589110
525051
558654
555465
493911
488152
437146
588111
463360
434781
442353
616758
434301
513404
439906
446455
523636
442669
448440
467993
472384
523260
]
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 (778121 , 526249 , 818233 , 723805 , 794640 , 793585 , 613965 , 635122 , 476614 , 485641 , 764681 , 715457 , 804807 , 442472 , 764057 , 779721 , 728667 , 728648 , 714756 , 400396 , 447792 , 601588 , 790498 , 811042 , 784970 , 723264 , 723368 , 487431 , 554185 , 624971 , 741836 , 426794 , 811243 , 513865 , 402335 , 528798 , 701522 , 761078 , 807653 , 552295 , 418797 , 434841 , 451330 , 461650 , 509545 , 591093 , 589110 , 525051 , 558654 , 555465 , 493911 , 488152 , 437146 , 588111 , 463360 , 434781 , 442353 , 616758 , 434301 , 513404 , 439906 , 446455 , 523636 , 442669 , 448440 , 467993 , 472384 , 523260 );
Copy
3.10 ms (1.86%)
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
400396
402335
418797
426794
434301
434781
434841
437146
439906
442353
442472
442669
446455
447792
448440
451330
461650
463360
467993
472384
476614
485641
487431
488152
493911
509545
513404
513865
523260
523636
525051
526249
528798
552295
554185
555465
558654
588111
589110
591093
601588
613965
616758
624971
635122
701522
714756
715457
723264
723368
723805
728667
761078
764057
778121
779721
784970
790498
793585
794640
804807
807653
811042
811243
818233
]
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 (400396 , 402335 , 418797 , 426794 , 434301 , 434781 , 434841 , 437146 , 439906 , 442353 , 442472 , 442669 , 446455 , 447792 , 448440 , 451330 , 461650 , 463360 , 467993 , 472384 , 476614 , 485641 , 487431 , 488152 , 493911 , 509545 , 513404 , 513865 , 523260 , 523636 , 525051 , 526249 , 528798 , 552295 , 554185 , 555465 , 558654 , 588111 , 589110 , 591093 , 601588 , 613965 , 616758 , 624971 , 635122 , 701522 , 714756 , 715457 , 723264 , 723368 , 723805 , 728667 , 761078 , 764057 , 778121 , 779721 , 784970 , 790498 , 793585 , 794640 , 804807 , 807653 , 811042 , 811243 , 818233 );
Copy