3
10.74 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
745066
809660
739084
622427
787512
780314
791890
791523
738461
807588
398302
690531
807634
608669
444490
776032
807147
742421
801643
488179
664715
468151
693873
607520
752643
623280
812058
774876
777765
808984
772254
776035
505902
523640
711598
678964
796687
739033
790461
801755
813219
528657
477244
739169
786876
674197
608955
791542
800508
797077
807067
753199
806413
765699
631325
492973
476382
631321
784652
713332
526837
610039
760859
449584
579590
550884
561970
]
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 (745066 , 809660 , 739084 , 622427 , 787512 , 780314 , 791890 , 791523 , 738461 , 807588 , 398302 , 690531 , 807634 , 608669 , 444490 , 776032 , 807147 , 742421 , 801643 , 488179 , 664715 , 468151 , 693873 , 607520 , 752643 , 623280 , 812058 , 774876 , 777765 , 808984 , 772254 , 776035 , 505902 , 523640 , 711598 , 678964 , 796687 , 739033 , 790461 , 801755 , 813219 , 528657 , 477244 , 739169 , 786876 , 674197 , 608955 , 791542 , 800508 , 797077 , 807067 , 753199 , 806413 , 765699 , 631325 , 492973 , 476382 , 631321 , 784652 , 713332 , 526837 , 610039 , 760859 , 449584 , 579590 , 550884 , 561970 );
Copy
4
3.40 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
398302
444490
449584
468151
476382
477244
488179
492973
505902
523640
526837
528657
550884
561970
579590
607520
608669
608955
610039
622427
623280
631321
631325
664715
674197
678964
690531
693873
711598
713332
738461
739033
739084
739169
742421
745066
752643
753199
760859
765699
772254
774876
776032
776035
777765
780314
784652
786876
787512
790461
791523
791542
791890
796687
797077
800508
801643
801755
806413
807067
807588
807634
808984
809660
812058
813219
]
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 (398302 , 444490 , 449584 , 468151 , 476382 , 477244 , 488179 , 492973 , 505902 , 523640 , 526837 , 528657 , 550884 , 561970 , 579590 , 607520 , 608669 , 608955 , 610039 , 622427 , 623280 , 631321 , 631325 , 664715 , 674197 , 678964 , 690531 , 693873 , 711598 , 713332 , 738461 , 739033 , 739084 , 739169 , 742421 , 745066 , 752643 , 753199 , 760859 , 765699 , 772254 , 774876 , 776032 , 776035 , 777765 , 780314 , 784652 , 786876 , 787512 , 790461 , 791523 , 791542 , 791890 , 796687 , 797077 , 800508 , 801643 , 801755 , 806413 , 807067 , 807588 , 807634 , 808984 , 809660 , 812058 , 813219 );
Copy
5
94.55 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
398302
444490
449584
468151
476382
477244
488179
492973
505902
523640
526837
528657
550884
561970
579590
607520
608669
608955
610039
622427
623280
631321
631325
664715
674197
678964
690531
693873
711598
713332
738461
739033
739084
739169
742421
745066
752643
753199
760859
765699
772254
774876
776032
776035
777765
780314
784652
786876
787512
790461
791523
791542
791890
796687
797077
800508
801643
801755
806413
807067
807588
807634
808984
809660
812058
813219
]
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 (398302 , 444490 , 449584 , 468151 , 476382 , 477244 , 488179 , 492973 , 505902 , 523640 , 526837 , 528657 , 550884 , 561970 , 579590 , 607520 , 608669 , 608955 , 610039 , 622427 , 623280 , 631321 , 631325 , 664715 , 674197 , 678964 , 690531 , 693873 , 711598 , 713332 , 738461 , 739033 , 739084 , 739169 , 742421 , 745066 , 752643 , 753199 , 760859 , 765699 , 772254 , 774876 , 776032 , 776035 , 777765 , 780314 , 784652 , 786876 , 787512 , 790461 , 791523 , 791542 , 791890 , 796687 , 797077 , 800508 , 801643 , 801755 , 806413 , 807067 , 807588 , 807634 , 808984 , 809660 , 812058 , 813219 );
Copy