71.36 ms (65.61%)
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
384095
390218
415107
416163
418994
424757
442913
457383
479165
490543
493158
500151
503429
503471
503498
503544
506201
508052
511097
512339
512769
519131
520933
521220
521478
527486
528952
539487
546921
546923
546934
547909
551267
555269
557936
557996
558003
559365
561917
562999
563038
563204
563479
569426
570212
571082
572997
573674
575499
580123
580139
588070
590448
598215
599368
605864
605913
610404
675795
755141
760760
]
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 (384095 , 390218 , 415107 , 416163 , 418994 , 424757 , 442913 , 457383 , 479165 , 490543 , 493158 , 500151 , 503429 , 503471 , 503498 , 503544 , 506201 , 508052 , 511097 , 512339 , 512769 , 519131 , 520933 , 521220 , 521478 , 527486 , 528952 , 539487 , 546921 , 546923 , 546934 , 547909 , 551267 , 555269 , 557936 , 557996 , 558003 , 559365 , 561917 , 562999 , 563038 , 563204 , 563479 , 569426 , 570212 , 571082 , 572997 , 573674 , 575499 , 580123 , 580139 , 588070 , 590448 , 598215 , 599368 , 605864 , 605913 , 610404 , 675795 , 755141 , 760760 );
Copy
9.73 ms (8.95%)
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
563204
562999
571082
415107
561917
384095
559365
416163
490543
521478
418994
557996
675795
755141
500151
508052
511097
503498
605864
506201
760760
424757
539487
527486
546923
580139
555269
599368
557936
572997
457383
520933
546921
546934
573674
570212
551267
519131
528952
547909
563038
569426
503544
503471
512769
521220
610404
503429
575499
390218
479165
558003
563479
442913
493158
580123
512339
605913
590448
588070
598215
]
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 (563204 , 562999 , 571082 , 415107 , 561917 , 384095 , 559365 , 416163 , 490543 , 521478 , 418994 , 557996 , 675795 , 755141 , 500151 , 508052 , 511097 , 503498 , 605864 , 506201 , 760760 , 424757 , 539487 , 527486 , 546923 , 580139 , 555269 , 599368 , 557936 , 572997 , 457383 , 520933 , 546921 , 546934 , 573674 , 570212 , 551267 , 519131 , 528952 , 547909 , 563038 , 569426 , 503544 , 503471 , 512769 , 521220 , 610404 , 503429 , 575499 , 390218 , 479165 , 558003 , 563479 , 442913 , 493158 , 580123 , 512339 , 605913 , 590448 , 588070 , 598215 );
Copy
3.18 ms (2.93%)
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
384095
390218
415107
416163
418994
424757
442913
457383
479165
490543
493158
500151
503429
503471
503498
503544
506201
508052
511097
512339
512769
519131
520933
521220
521478
527486
528952
539487
546921
546923
546934
547909
551267
555269
557936
557996
558003
559365
561917
562999
563038
563204
563479
569426
570212
571082
572997
573674
575499
580123
580139
588070
590448
598215
599368
605864
605913
610404
675795
755141
760760
]
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 (384095 , 390218 , 415107 , 416163 , 418994 , 424757 , 442913 , 457383 , 479165 , 490543 , 493158 , 500151 , 503429 , 503471 , 503498 , 503544 , 506201 , 508052 , 511097 , 512339 , 512769 , 519131 , 520933 , 521220 , 521478 , 527486 , 528952 , 539487 , 546921 , 546923 , 546934 , 547909 , 551267 , 555269 , 557936 , 557996 , 558003 , 559365 , 561917 , 562999 , 563038 , 563204 , 563479 , 569426 , 570212 , 571082 , 572997 , 573674 , 575499 , 580123 , 580139 , 588070 , 590448 , 598215 , 599368 , 605864 , 605913 , 610404 , 675795 , 755141 , 760760 );
Copy