3
12.13 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
543508
543237
750250
543224
556960
795295
543236
711660
543154
543893
543184
556964
575038
580752
552044
810382
424831
543005
542264
633440
543463
543797
543253
562339
562349
727554
543479
543266
543513
643380
488566
556922
630081
635336
543068
543173
543260
542190
543497
575011
543195
556941
562340
593886
585999
454108
543865
582209
544672
586534
543186
580035
494736
562336
543475
562342
574460
541640
543518
601101
577096
575007
626347
]
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 (543508 , 543237 , 750250 , 543224 , 556960 , 795295 , 543236 , 711660 , 543154 , 543893 , 543184 , 556964 , 575038 , 580752 , 552044 , 810382 , 424831 , 543005 , 542264 , 633440 , 543463 , 543797 , 543253 , 562339 , 562349 , 727554 , 543479 , 543266 , 543513 , 643380 , 488566 , 556922 , 630081 , 635336 , 543068 , 543173 , 543260 , 542190 , 543497 , 575011 , 543195 , 556941 , 562340 , 593886 , 585999 , 454108 , 543865 , 582209 , 544672 , 586534 , 543186 , 580035 , 494736 , 562336 , 543475 , 562342 , 574460 , 541640 , 543518 , 601101 , 577096 , 575007 , 626347 );
Copy
4
3.21 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
424831
454108
488566
494736
541640
542190
542264
543005
543068
543154
543173
543184
543186
543195
543224
543236
543237
543253
543260
543266
543463
543475
543479
543497
543508
543513
543518
543797
543865
543893
544672
552044
556922
556941
556960
556964
562336
562339
562340
562342
562349
574460
575007
575011
575038
577096
580035
580752
582209
585999
586534
593886
601101
626347
630081
633440
635336
643380
711660
727554
750250
795295
810382
]
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 (424831 , 454108 , 488566 , 494736 , 541640 , 542190 , 542264 , 543005 , 543068 , 543154 , 543173 , 543184 , 543186 , 543195 , 543224 , 543236 , 543237 , 543253 , 543260 , 543266 , 543463 , 543475 , 543479 , 543497 , 543508 , 543513 , 543518 , 543797 , 543865 , 543893 , 544672 , 552044 , 556922 , 556941 , 556960 , 556964 , 562336 , 562339 , 562340 , 562342 , 562349 , 574460 , 575007 , 575011 , 575038 , 577096 , 580035 , 580752 , 582209 , 585999 , 586534 , 593886 , 601101 , 626347 , 630081 , 633440 , 635336 , 643380 , 711660 , 727554 , 750250 , 795295 , 810382 );
Copy
5
97.53 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
424831
454108
488566
494736
541640
542190
542264
543005
543068
543154
543173
543184
543186
543195
543224
543236
543237
543253
543260
543266
543463
543475
543479
543497
543508
543513
543518
543797
543865
543893
544672
552044
556922
556941
556960
556964
562336
562339
562340
562342
562349
574460
575007
575011
575038
577096
580035
580752
582209
585999
586534
593886
601101
626347
630081
633440
635336
643380
711660
727554
750250
795295
810382
]
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 (424831 , 454108 , 488566 , 494736 , 541640 , 542190 , 542264 , 543005 , 543068 , 543154 , 543173 , 543184 , 543186 , 543195 , 543224 , 543236 , 543237 , 543253 , 543260 , 543266 , 543463 , 543475 , 543479 , 543497 , 543508 , 543513 , 543518 , 543797 , 543865 , 543893 , 544672 , 552044 , 556922 , 556941 , 556960 , 556964 , 562336 , 562339 , 562340 , 562342 , 562349 , 574460 , 575007 , 575011 , 575038 , 577096 , 580035 , 580752 , 582209 , 585999 , 586534 , 593886 , 601101 , 626347 , 630081 , 633440 , 635336 , 643380 , 711660 , 727554 , 750250 , 795295 , 810382 );
Copy