4
12.50 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
779340
707454
733387
391947
759810
263727
358365
586256
401057
385359
589142
475672
639803
545355
554114
789077
779014
765588
540272
728347
709764
728230
603545
556014
422376
468590
454366
545521
465277
466883
560394
556412
556022
570064
580237
404296
423021
429565
450417
460906
474795
396329
401987
424923
575514
600123
423169
466275
460725
523907
462208
389412
549771
472712
428520
567605
454213
470202
517549
566272
607087
474035
514640
563546
499882
]
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 (779340 , 707454 , 733387 , 391947 , 759810 , 263727 , 358365 , 586256 , 401057 , 385359 , 589142 , 475672 , 639803 , 545355 , 554114 , 789077 , 779014 , 765588 , 540272 , 728347 , 709764 , 728230 , 603545 , 556014 , 422376 , 468590 , 454366 , 545521 , 465277 , 466883 , 560394 , 556412 , 556022 , 570064 , 580237 , 404296 , 423021 , 429565 , 450417 , 460906 , 474795 , 396329 , 401987 , 424923 , 575514 , 600123 , 423169 , 466275 , 460725 , 523907 , 462208 , 389412 , 549771 , 472712 , 428520 , 567605 , 454213 , 470202 , 517549 , 566272 , 607087 , 474035 , 514640 , 563546 , 499882 );
Copy
5
3.36 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
263727
358365
385359
389412
391947
396329
401057
401987
404296
422376
423021
423169
424923
428520
429565
450417
454213
454366
460725
460906
462208
465277
466275
466883
468590
470202
472712
474035
474795
475672
499882
514640
517549
523907
540272
545355
545521
549771
554114
556014
556022
556412
560394
563546
566272
567605
570064
575514
580237
586256
589142
600123
603545
607087
639803
707454
709764
728230
728347
733387
759810
765588
779014
779340
789077
]
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 (263727 , 358365 , 385359 , 389412 , 391947 , 396329 , 401057 , 401987 , 404296 , 422376 , 423021 , 423169 , 424923 , 428520 , 429565 , 450417 , 454213 , 454366 , 460725 , 460906 , 462208 , 465277 , 466275 , 466883 , 468590 , 470202 , 472712 , 474035 , 474795 , 475672 , 499882 , 514640 , 517549 , 523907 , 540272 , 545355 , 545521 , 549771 , 554114 , 556014 , 556022 , 556412 , 560394 , 563546 , 566272 , 567605 , 570064 , 575514 , 580237 , 586256 , 589142 , 600123 , 603545 , 607087 , 639803 , 707454 , 709764 , 728230 , 728347 , 733387 , 759810 , 765588 , 779014 , 779340 , 789077 );
Copy
6
88.65 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
263727
358365
385359
389412
391947
396329
401057
401987
404296
422376
423021
423169
424923
428520
429565
450417
454213
454366
460725
460906
462208
465277
466275
466883
468590
470202
472712
474035
474795
475672
499882
514640
517549
523907
540272
545355
545521
549771
554114
556014
556022
556412
560394
563546
566272
567605
570064
575514
580237
586256
589142
600123
603545
607087
639803
707454
709764
728230
728347
733387
759810
765588
779014
779340
789077
]
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 (263727 , 358365 , 385359 , 389412 , 391947 , 396329 , 401057 , 401987 , 404296 , 422376 , 423021 , 423169 , 424923 , 428520 , 429565 , 450417 , 454213 , 454366 , 460725 , 460906 , 462208 , 465277 , 466275 , 466883 , 468590 , 470202 , 472712 , 474035 , 474795 , 475672 , 499882 , 514640 , 517549 , 523907 , 540272 , 545355 , 545521 , 549771 , 554114 , 556014 , 556022 , 556412 , 560394 , 563546 , 566272 , 567605 , 570064 , 575514 , 580237 , 586256 , 589142 , 600123 , 603545 , 607087 , 639803 , 707454 , 709764 , 728230 , 728347 , 733387 , 759810 , 765588 , 779014 , 779340 , 789077 );
Copy