3
8.67 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
732178
643690
721037
796807
555328
635823
788331
742726
643698
752616
554686
575253
620911
796075
613851
827278
547416
749801
520879
716582
681546
554828
678820
758797
788556
426510
627131
579826
810076
614428
767218
817107
799947
614675
737857
801530
540129
781358
727052
648891
785114
817864
757217
738326
704896
760446
460857
778762
439798
700011
691381
629458
814333
650139
593734
618177
566325
706286
548422
623135
561488
558622
584539
]
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 (732178 , 643690 , 721037 , 796807 , 555328 , 635823 , 788331 , 742726 , 643698 , 752616 , 554686 , 575253 , 620911 , 796075 , 613851 , 827278 , 547416 , 749801 , 520879 , 716582 , 681546 , 554828 , 678820 , 758797 , 788556 , 426510 , 627131 , 579826 , 810076 , 614428 , 767218 , 817107 , 799947 , 614675 , 737857 , 801530 , 540129 , 781358 , 727052 , 648891 , 785114 , 817864 , 757217 , 738326 , 704896 , 760446 , 460857 , 778762 , 439798 , 700011 , 691381 , 629458 , 814333 , 650139 , 593734 , 618177 , 566325 , 706286 , 548422 , 623135 , 561488 , 558622 , 584539 );
Copy
4
2.01 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
426510
439798
460857
520879
540129
547416
548422
554686
554828
555328
558622
561488
566325
575253
579826
584539
593734
613851
614428
614675
618177
620911
623135
627131
629458
635823
643690
643698
648891
650139
678820
681546
691381
700011
704896
706286
716582
721037
727052
732178
737857
738326
742726
749801
752616
757217
758797
760446
767218
778762
781358
785114
788331
788556
796075
796807
799947
801530
810076
814333
817107
817864
827278
]
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 (426510 , 439798 , 460857 , 520879 , 540129 , 547416 , 548422 , 554686 , 554828 , 555328 , 558622 , 561488 , 566325 , 575253 , 579826 , 584539 , 593734 , 613851 , 614428 , 614675 , 618177 , 620911 , 623135 , 627131 , 629458 , 635823 , 643690 , 643698 , 648891 , 650139 , 678820 , 681546 , 691381 , 700011 , 704896 , 706286 , 716582 , 721037 , 727052 , 732178 , 737857 , 738326 , 742726 , 749801 , 752616 , 757217 , 758797 , 760446 , 767218 , 778762 , 781358 , 785114 , 788331 , 788556 , 796075 , 796807 , 799947 , 801530 , 810076 , 814333 , 817107 , 817864 , 827278 );
Copy
5
67.87 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
426510
439798
460857
520879
540129
547416
548422
554686
554828
555328
558622
561488
566325
575253
579826
584539
593734
613851
614428
614675
618177
620911
623135
627131
629458
635823
643690
643698
648891
650139
678820
681546
691381
700011
704896
706286
716582
721037
727052
732178
737857
738326
742726
749801
752616
757217
758797
760446
767218
778762
781358
785114
788331
788556
796075
796807
799947
801530
810076
814333
817107
817864
827278
]
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 (426510 , 439798 , 460857 , 520879 , 540129 , 547416 , 548422 , 554686 , 554828 , 555328 , 558622 , 561488 , 566325 , 575253 , 579826 , 584539 , 593734 , 613851 , 614428 , 614675 , 618177 , 620911 , 623135 , 627131 , 629458 , 635823 , 643690 , 643698 , 648891 , 650139 , 678820 , 681546 , 691381 , 700011 , 704896 , 706286 , 716582 , 721037 , 727052 , 732178 , 737857 , 738326 , 742726 , 749801 , 752616 , 757217 , 758797 , 760446 , 767218 , 778762 , 781358 , 785114 , 788331 , 788556 , 796075 , 796807 , 799947 , 801530 , 810076 , 814333 , 817107 , 817864 , 827278 );
Copy