93.98 ms (70.59%)
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
397349
421797
423349
423518
452256
453494
458234
459189
472935
479957
492779
499349
500363
501734
504091
513828
515580
520205
520427
520753
520759
522498
523014
524777
526130
526330
526540
527304
528877
534567
539748
541241
544113
544490
549214
551136
552348
559173
559934
561488
562866
563932
565779
580613
585550
585771
594228
596901
596987
601180
603684
603852
605378
605442
609225
613977
615680
621494
623229
624226
626811
634725
641489
770225
807914
812777
]
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 (397349 , 421797 , 423349 , 423518 , 452256 , 453494 , 458234 , 459189 , 472935 , 479957 , 492779 , 499349 , 500363 , 501734 , 504091 , 513828 , 515580 , 520205 , 520427 , 520753 , 520759 , 522498 , 523014 , 524777 , 526130 , 526330 , 526540 , 527304 , 528877 , 534567 , 539748 , 541241 , 544113 , 544490 , 549214 , 551136 , 552348 , 559173 , 559934 , 561488 , 562866 , 563932 , 565779 , 580613 , 585550 , 585771 , 594228 , 596901 , 596987 , 601180 , 603684 , 603852 , 605378 , 605442 , 609225 , 613977 , 615680 , 621494 , 623229 , 624226 , 626811 , 634725 , 641489 , 770225 , 807914 , 812777 );
Copy
12.61 ms (9.47%)
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
472935
541241
552348
561488
565779
544490
562866
559934
585771
603684
603852
605378
605442
621494
615680
596987
601180
613977
623229
807914
812777
634725
397349
459189
479957
423518
520427
515580
523014
499349
522498
534567
501734
526330
544113
559173
585550
626811
641489
458234
423349
452256
421797
528877
513828
527304
453494
526130
539748
524777
526540
770225
504091
563932
551136
500363
520205
549214
596901
520753
594228
609225
492779
580613
520759
624226
]
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 (472935 , 541241 , 552348 , 561488 , 565779 , 544490 , 562866 , 559934 , 585771 , 603684 , 603852 , 605378 , 605442 , 621494 , 615680 , 596987 , 601180 , 613977 , 623229 , 807914 , 812777 , 634725 , 397349 , 459189 , 479957 , 423518 , 520427 , 515580 , 523014 , 499349 , 522498 , 534567 , 501734 , 526330 , 544113 , 559173 , 585550 , 626811 , 641489 , 458234 , 423349 , 452256 , 421797 , 528877 , 513828 , 527304 , 453494 , 526130 , 539748 , 524777 , 526540 , 770225 , 504091 , 563932 , 551136 , 500363 , 520205 , 549214 , 596901 , 520753 , 594228 , 609225 , 492779 , 580613 , 520759 , 624226 );
Copy
2.54 ms (1.90%)
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
397349
421797
423349
423518
452256
453494
458234
459189
472935
479957
492779
499349
500363
501734
504091
513828
515580
520205
520427
520753
520759
522498
523014
524777
526130
526330
526540
527304
528877
534567
539748
541241
544113
544490
549214
551136
552348
559173
559934
561488
562866
563932
565779
580613
585550
585771
594228
596901
596987
601180
603684
603852
605378
605442
609225
613977
615680
621494
623229
624226
626811
634725
641489
770225
807914
812777
]
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 (397349 , 421797 , 423349 , 423518 , 452256 , 453494 , 458234 , 459189 , 472935 , 479957 , 492779 , 499349 , 500363 , 501734 , 504091 , 513828 , 515580 , 520205 , 520427 , 520753 , 520759 , 522498 , 523014 , 524777 , 526130 , 526330 , 526540 , 527304 , 528877 , 534567 , 539748 , 541241 , 544113 , 544490 , 549214 , 551136 , 552348 , 559173 , 559934 , 561488 , 562866 , 563932 , 565779 , 580613 , 585550 , 585771 , 594228 , 596901 , 596987 , 601180 , 603684 , 603852 , 605378 , 605442 , 609225 , 613977 , 615680 , 621494 , 623229 , 624226 , 626811 , 634725 , 641489 , 770225 , 807914 , 812777 );
Copy