93.03 ms (48.17%)
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
387377
390888
398957
409346
421841
424467
426712
451445
454213
454270
454293
460725
460912
460921
461629
462279
462314
462575
465358
465372
466176
467033
470539
470685
474029
476342
477376
477735
479048
479143
484014
484387
484462
484463
485357
485511
485596
485916
486569
488961
490874
490937
493088
493490
511907
518837
520480
520851
521176
521698
523604
526040
526736
539506
543945
546774
546932
546993
547930
557998
559059
563194
566403
605764
608354
618949
620098
621489
624084
]
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 (387377 , 390888 , 398957 , 409346 , 421841 , 424467 , 426712 , 451445 , 454213 , 454270 , 454293 , 460725 , 460912 , 460921 , 461629 , 462279 , 462314 , 462575 , 465358 , 465372 , 466176 , 467033 , 470539 , 470685 , 474029 , 476342 , 477376 , 477735 , 479048 , 479143 , 484014 , 484387 , 484462 , 484463 , 485357 , 485511 , 485596 , 485916 , 486569 , 488961 , 490874 , 490937 , 493088 , 493490 , 511907 , 518837 , 520480 , 520851 , 521176 , 521698 , 523604 , 526040 , 526736 , 539506 , 543945 , 546774 , 546932 , 546993 , 547930 , 557998 , 559059 , 563194 , 566403 , 605764 , 608354 , 618949 , 620098 , 621489 , 624084 );
Copy
11.80 ms (6.11%)
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
398957
485916
409346
387377
605764
461629
460921
477376
526040
485596
479048
462575
563194
557998
460912
488961
518837
490937
543945
523604
424467
454270
493088
559059
484014
479143
465358
476342
521698
566403
520480
474029
484462
470539
608354
485511
465372
539506
426712
485357
421841
454293
460725
493490
547930
521176
490874
520851
618949
484387
466176
511907
390888
462314
451445
546932
467033
477735
546774
454213
486569
546993
484463
624084
462279
620098
621489
526736
470685
]
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 (398957 , 485916 , 409346 , 387377 , 605764 , 461629 , 460921 , 477376 , 526040 , 485596 , 479048 , 462575 , 563194 , 557998 , 460912 , 488961 , 518837 , 490937 , 543945 , 523604 , 424467 , 454270 , 493088 , 559059 , 484014 , 479143 , 465358 , 476342 , 521698 , 566403 , 520480 , 474029 , 484462 , 470539 , 608354 , 485511 , 465372 , 539506 , 426712 , 485357 , 421841 , 454293 , 460725 , 493490 , 547930 , 521176 , 490874 , 520851 , 618949 , 484387 , 466176 , 511907 , 390888 , 462314 , 451445 , 546932 , 467033 , 477735 , 546774 , 454213 , 486569 , 546993 , 484463 , 624084 , 462279 , 620098 , 621489 , 526736 , 470685 );
Copy
2.14 ms (1.11%)
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
387377
390888
398957
409346
421841
424467
426712
451445
454213
454270
454293
460725
460912
460921
461629
462279
462314
462575
465358
465372
466176
467033
470539
470685
474029
476342
477376
477735
479048
479143
484014
484387
484462
484463
485357
485511
485596
485916
486569
488961
490874
490937
493088
493490
511907
518837
520480
520851
521176
521698
523604
526040
526736
539506
543945
546774
546932
546993
547930
557998
559059
563194
566403
605764
608354
618949
620098
621489
624084
]
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 (387377 , 390888 , 398957 , 409346 , 421841 , 424467 , 426712 , 451445 , 454213 , 454270 , 454293 , 460725 , 460912 , 460921 , 461629 , 462279 , 462314 , 462575 , 465358 , 465372 , 466176 , 467033 , 470539 , 470685 , 474029 , 476342 , 477376 , 477735 , 479048 , 479143 , 484014 , 484387 , 484462 , 484463 , 485357 , 485511 , 485596 , 485916 , 486569 , 488961 , 490874 , 490937 , 493088 , 493490 , 511907 , 518837 , 520480 , 520851 , 521176 , 521698 , 523604 , 526040 , 526736 , 539506 , 543945 , 546774 , 546932 , 546993 , 547930 , 557998 , 559059 , 563194 , 566403 , 605764 , 608354 , 618949 , 620098 , 621489 , 624084 );
Copy