81.35 ms (59.04%)
1
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
393481
394409
397063
397361
400714
416066
419406
419407
422633
422947
423205
428523
446353
447560
451726
453162
463118
470317
480437
480439
482174
502292
515178
522995
523532
524455
530690
531767
534229
535581
544206
565256
569677
571218
579389
597227
597260
597264
624273
627778
628126
633449
634482
634512
640813
642751
665681
698301
698708
717297
717906
723933
737161
743345
744290
751753
761076
789457
800625
806277
821667
]
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 (393481 , 394409 , 397063 , 397361 , 400714 , 416066 , 419406 , 419407 , 422633 , 422947 , 423205 , 428523 , 446353 , 447560 , 451726 , 453162 , 463118 , 470317 , 480437 , 480439 , 482174 , 502292 , 515178 , 522995 , 523532 , 524455 , 530690 , 531767 , 534229 , 535581 , 544206 , 565256 , 569677 , 571218 , 579389 , 597227 , 597260 , 597264 , 624273 , 627778 , 628126 , 633449 , 634482 , 634512 , 640813 , 642751 , 665681 , 698301 , 698708 , 717297 , 717906 , 723933 , 737161 , 743345 , 744290 , 751753 , 761076 , 789457 , 800625 , 806277 , 821667 );
Copy
10.06 ms (7.30%)
1
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
470317
751753
397063
806277
761076
821667
627778
800625
482174
717297
744290
571218
597264
531767
400714
624273
789457
743345
737161
698708
634512
451726
463118
698301
723933
717906
416066
502292
394409
597227
428523
419407
446353
480437
515178
544206
665681
523532
569677
524455
597260
422633
422947
447560
480439
530690
453162
642751
419406
522995
579389
634482
423205
397361
535581
565256
640813
628126
633449
393481
534229
]
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 (470317 , 751753 , 397063 , 806277 , 761076 , 821667 , 627778 , 800625 , 482174 , 717297 , 744290 , 571218 , 597264 , 531767 , 400714 , 624273 , 789457 , 743345 , 737161 , 698708 , 634512 , 451726 , 463118 , 698301 , 723933 , 717906 , 416066 , 502292 , 394409 , 597227 , 428523 , 419407 , 446353 , 480437 , 515178 , 544206 , 665681 , 523532 , 569677 , 524455 , 597260 , 422633 , 422947 , 447560 , 480439 , 530690 , 453162 , 642751 , 419406 , 522995 , 579389 , 634482 , 423205 , 397361 , 535581 , 565256 , 640813 , 628126 , 633449 , 393481 , 534229 );
Copy
3.19 ms (2.32%)
1
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
393481
394409
397063
397361
400714
416066
419406
419407
422633
422947
423205
428523
446353
447560
451726
453162
463118
470317
480437
480439
482174
502292
515178
522995
523532
524455
530690
531767
534229
535581
544206
565256
569677
571218
579389
597227
597260
597264
624273
627778
628126
633449
634482
634512
640813
642751
665681
698301
698708
717297
717906
723933
737161
743345
744290
751753
761076
789457
800625
806277
821667
]
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 (393481 , 394409 , 397063 , 397361 , 400714 , 416066 , 419406 , 419407 , 422633 , 422947 , 423205 , 428523 , 446353 , 447560 , 451726 , 453162 , 463118 , 470317 , 480437 , 480439 , 482174 , 502292 , 515178 , 522995 , 523532 , 524455 , 530690 , 531767 , 534229 , 535581 , 544206 , 565256 , 569677 , 571218 , 579389 , 597227 , 597260 , 597264 , 624273 , 627778 , 628126 , 633449 , 634482 , 634512 , 640813 , 642751 , 665681 , 698301 , 698708 , 717297 , 717906 , 723933 , 737161 , 743345 , 744290 , 751753 , 761076 , 789457 , 800625 , 806277 , 821667 );
Copy