3
11.80 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
765319
728497
765267
770493
814111
784092
791358
667917
794302
784080
766649
792651
560833
711568
628564
779003
660465
588551
589743
826663
578233
588601
787875
768554
765752
709316
598158
561869
567895
631717
626008
615029
562793
610147
624990
575871
686207
579851
618471
588716
809466
567608
588494
572296
558183
580405
611450
784493
572338
553673
625729
667975
553650
559989
638139
633312
552458
595080
561296
549569
599545
621520
591176
]
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 (765319 , 728497 , 765267 , 770493 , 814111 , 784092 , 791358 , 667917 , 794302 , 784080 , 766649 , 792651 , 560833 , 711568 , 628564 , 779003 , 660465 , 588551 , 589743 , 826663 , 578233 , 588601 , 787875 , 768554 , 765752 , 709316 , 598158 , 561869 , 567895 , 631717 , 626008 , 615029 , 562793 , 610147 , 624990 , 575871 , 686207 , 579851 , 618471 , 588716 , 809466 , 567608 , 588494 , 572296 , 558183 , 580405 , 611450 , 784493 , 572338 , 553673 , 625729 , 667975 , 553650 , 559989 , 638139 , 633312 , 552458 , 595080 , 561296 , 549569 , 599545 , 621520 , 591176 );
Copy
4
2.44 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
549569
552458
553650
553673
558183
559989
560833
561296
561869
562793
567608
567895
572296
572338
575871
578233
579851
580405
588494
588551
588601
588716
589743
591176
595080
598158
599545
610147
611450
615029
618471
621520
624990
625729
626008
628564
631717
633312
638139
660465
667917
667975
686207
709316
711568
728497
765267
765319
765752
766649
768554
770493
779003
784080
784092
784493
787875
791358
792651
794302
809466
814111
826663
]
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 (549569 , 552458 , 553650 , 553673 , 558183 , 559989 , 560833 , 561296 , 561869 , 562793 , 567608 , 567895 , 572296 , 572338 , 575871 , 578233 , 579851 , 580405 , 588494 , 588551 , 588601 , 588716 , 589743 , 591176 , 595080 , 598158 , 599545 , 610147 , 611450 , 615029 , 618471 , 621520 , 624990 , 625729 , 626008 , 628564 , 631717 , 633312 , 638139 , 660465 , 667917 , 667975 , 686207 , 709316 , 711568 , 728497 , 765267 , 765319 , 765752 , 766649 , 768554 , 770493 , 779003 , 784080 , 784092 , 784493 , 787875 , 791358 , 792651 , 794302 , 809466 , 814111 , 826663 );
Copy
5
160.48 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
549569
552458
553650
553673
558183
559989
560833
561296
561869
562793
567608
567895
572296
572338
575871
578233
579851
580405
588494
588551
588601
588716
589743
591176
595080
598158
599545
610147
611450
615029
618471
621520
624990
625729
626008
628564
631717
633312
638139
660465
667917
667975
686207
709316
711568
728497
765267
765319
765752
766649
768554
770493
779003
784080
784092
784493
787875
791358
792651
794302
809466
814111
826663
]
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 (549569 , 552458 , 553650 , 553673 , 558183 , 559989 , 560833 , 561296 , 561869 , 562793 , 567608 , 567895 , 572296 , 572338 , 575871 , 578233 , 579851 , 580405 , 588494 , 588551 , 588601 , 588716 , 589743 , 591176 , 595080 , 598158 , 599545 , 610147 , 611450 , 615029 , 618471 , 621520 , 624990 , 625729 , 626008 , 628564 , 631717 , 633312 , 638139 , 660465 , 667917 , 667975 , 686207 , 709316 , 711568 , 728497 , 765267 , 765319 , 765752 , 766649 , 768554 , 770493 , 779003 , 784080 , 784092 , 784493 , 787875 , 791358 , 792651 , 794302 , 809466 , 814111 , 826663 );
Copy