3
9.71 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
439674
421867
421881
421927
439710
389264
421876
421945
422166
440222
454411
454421
469391
422192
433350
520203
523850
395701
428017
539744
508701
549742
549824
624003
422200
444298
422157
439768
440693
421908
422158
439731
421878
439787
422161
475632
535446
505828
507047
395721
404740
425347
445056
539739
493222
422195
439797
421857
426987
442118
439773
439714
481971
492121
439641
439696
492712
613275
620001
614906
621655
618359
623378
]
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 (439674 , 421867 , 421881 , 421927 , 439710 , 389264 , 421876 , 421945 , 422166 , 440222 , 454411 , 454421 , 469391 , 422192 , 433350 , 520203 , 523850 , 395701 , 428017 , 539744 , 508701 , 549742 , 549824 , 624003 , 422200 , 444298 , 422157 , 439768 , 440693 , 421908 , 422158 , 439731 , 421878 , 439787 , 422161 , 475632 , 535446 , 505828 , 507047 , 395721 , 404740 , 425347 , 445056 , 539739 , 493222 , 422195 , 439797 , 421857 , 426987 , 442118 , 439773 , 439714 , 481971 , 492121 , 439641 , 439696 , 492712 , 613275 , 620001 , 614906 , 621655 , 618359 , 623378 );
Copy
4
2.48 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
389264
395701
395721
404740
421857
421867
421876
421878
421881
421908
421927
421945
422157
422158
422161
422166
422192
422195
422200
425347
426987
428017
433350
439641
439674
439696
439710
439714
439731
439768
439773
439787
439797
440222
440693
442118
444298
445056
454411
454421
469391
475632
481971
492121
492712
493222
505828
507047
508701
520203
523850
535446
539739
539744
549742
549824
613275
614906
618359
620001
621655
623378
624003
]
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 (389264 , 395701 , 395721 , 404740 , 421857 , 421867 , 421876 , 421878 , 421881 , 421908 , 421927 , 421945 , 422157 , 422158 , 422161 , 422166 , 422192 , 422195 , 422200 , 425347 , 426987 , 428017 , 433350 , 439641 , 439674 , 439696 , 439710 , 439714 , 439731 , 439768 , 439773 , 439787 , 439797 , 440222 , 440693 , 442118 , 444298 , 445056 , 454411 , 454421 , 469391 , 475632 , 481971 , 492121 , 492712 , 493222 , 505828 , 507047 , 508701 , 520203 , 523850 , 535446 , 539739 , 539744 , 549742 , 549824 , 613275 , 614906 , 618359 , 620001 , 621655 , 623378 , 624003 );
Copy
5
82.59 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
389264
395701
395721
404740
421857
421867
421876
421878
421881
421908
421927
421945
422157
422158
422161
422166
422192
422195
422200
425347
426987
428017
433350
439641
439674
439696
439710
439714
439731
439768
439773
439787
439797
440222
440693
442118
444298
445056
454411
454421
469391
475632
481971
492121
492712
493222
505828
507047
508701
520203
523850
535446
539739
539744
549742
549824
613275
614906
618359
620001
621655
623378
624003
]
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 (389264 , 395701 , 395721 , 404740 , 421857 , 421867 , 421876 , 421878 , 421881 , 421908 , 421927 , 421945 , 422157 , 422158 , 422161 , 422166 , 422192 , 422195 , 422200 , 425347 , 426987 , 428017 , 433350 , 439641 , 439674 , 439696 , 439710 , 439714 , 439731 , 439768 , 439773 , 439787 , 439797 , 440222 , 440693 , 442118 , 444298 , 445056 , 454411 , 454421 , 469391 , 475632 , 481971 , 492121 , 492712 , 493222 , 505828 , 507047 , 508701 , 520203 , 523850 , 535446 , 539739 , 539744 , 549742 , 549824 , 613275 , 614906 , 618359 , 620001 , 621655 , 623378 , 624003 );
Copy