101.69 ms (70.36%)
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
163370
381964
384757
391403
403618
420200
421678
430516
452572
458765
469035
475227
479708
479723
479726
479727
479738
480861
494141
495292
511196
515065
531703
543840
546028
548723
551268
552458
562786
565254
571091
582899
584334
596621
597750
599044
601358
692665
736418
750887
751489
753001
756745
758331
761688
770581
770856
784227
789743
789800
791810
800575
803114
803392
805133
806466
806830
808321
808997
810966
813219
813649
814039
814955
814958
814965
817025
817667
819765
826618
]
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 (163370 , 381964 , 384757 , 391403 , 403618 , 420200 , 421678 , 430516 , 452572 , 458765 , 469035 , 475227 , 479708 , 479723 , 479726 , 479727 , 479738 , 480861 , 494141 , 495292 , 511196 , 515065 , 531703 , 543840 , 546028 , 548723 , 551268 , 552458 , 562786 , 565254 , 571091 , 582899 , 584334 , 596621 , 597750 , 599044 , 601358 , 692665 , 736418 , 750887 , 751489 , 753001 , 756745 , 758331 , 761688 , 770581 , 770856 , 784227 , 789743 , 789800 , 791810 , 800575 , 803114 , 803392 , 805133 , 806466 , 806830 , 808321 , 808997 , 810966 , 813219 , 813649 , 814039 , 814955 , 814958 , 814965 , 817025 , 817667 , 819765 , 826618 );
Copy
11.14 ms (7.71%)
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
571091
800575
803114
810966
381964
531703
753001
819765
469035
543840
479723
826618
817025
403618
692665
806830
814039
736418
751489
789800
548723
808997
163370
562786
814955
758331
494141
452572
546028
479727
817667
784227
813219
805133
806466
789743
756745
770581
479708
515065
511196
479726
479738
814965
596621
761688
770856
458765
813649
584334
808321
750887
475227
384757
551268
480861
597750
814958
803392
430516
391403
791810
552458
421678
420200
495292
565254
601358
582899
599044
]
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 (571091 , 800575 , 803114 , 810966 , 381964 , 531703 , 753001 , 819765 , 469035 , 543840 , 479723 , 826618 , 817025 , 403618 , 692665 , 806830 , 814039 , 736418 , 751489 , 789800 , 548723 , 808997 , 163370 , 562786 , 814955 , 758331 , 494141 , 452572 , 546028 , 479727 , 817667 , 784227 , 813219 , 805133 , 806466 , 789743 , 756745 , 770581 , 479708 , 515065 , 511196 , 479726 , 479738 , 814965 , 596621 , 761688 , 770856 , 458765 , 813649 , 584334 , 808321 , 750887 , 475227 , 384757 , 551268 , 480861 , 597750 , 814958 , 803392 , 430516 , 391403 , 791810 , 552458 , 421678 , 420200 , 495292 , 565254 , 601358 , 582899 , 599044 );
Copy
3.89 ms (2.69%)
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
163370
381964
384757
391403
403618
420200
421678
430516
452572
458765
469035
475227
479708
479723
479726
479727
479738
480861
494141
495292
511196
515065
531703
543840
546028
548723
551268
552458
562786
565254
571091
582899
584334
596621
597750
599044
601358
692665
736418
750887
751489
753001
756745
758331
761688
770581
770856
784227
789743
789800
791810
800575
803114
803392
805133
806466
806830
808321
808997
810966
813219
813649
814039
814955
814958
814965
817025
817667
819765
826618
]
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 (163370 , 381964 , 384757 , 391403 , 403618 , 420200 , 421678 , 430516 , 452572 , 458765 , 469035 , 475227 , 479708 , 479723 , 479726 , 479727 , 479738 , 480861 , 494141 , 495292 , 511196 , 515065 , 531703 , 543840 , 546028 , 548723 , 551268 , 552458 , 562786 , 565254 , 571091 , 582899 , 584334 , 596621 , 597750 , 599044 , 601358 , 692665 , 736418 , 750887 , 751489 , 753001 , 756745 , 758331 , 761688 , 770581 , 770856 , 784227 , 789743 , 789800 , 791810 , 800575 , 803114 , 803392 , 805133 , 806466 , 806830 , 808321 , 808997 , 810966 , 813219 , 813649 , 814039 , 814955 , 814958 , 814965 , 817025 , 817667 , 819765 , 826618 );
Copy