74.79 ms (72.13%)
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
406075
408675
427550
430553
465394
469198
472474
480521
485315
488904
491823
492525
496569
509100
509802
511837
514070
515793
516214
516308
519345
520445
522930
524848
525525
527468
537198
539336
542903
546757
548870
555953
558524
561328
562995
565185
565186
565351
571027
572885
574244
576095
579038
579273
584125
589721
595500
596823
598500
598844
599103
601906
602916
603159
603954
604003
606217
607442
613316
613970
616787
621946
623357
626485
627074
627700
627764
636154
653557
659272
]
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 (406075 , 408675 , 427550 , 430553 , 465394 , 469198 , 472474 , 480521 , 485315 , 488904 , 491823 , 492525 , 496569 , 509100 , 509802 , 511837 , 514070 , 515793 , 516214 , 516308 , 519345 , 520445 , 522930 , 524848 , 525525 , 527468 , 537198 , 539336 , 542903 , 546757 , 548870 , 555953 , 558524 , 561328 , 562995 , 565185 , 565186 , 565351 , 571027 , 572885 , 574244 , 576095 , 579038 , 579273 , 584125 , 589721 , 595500 , 596823 , 598500 , 598844 , 599103 , 601906 , 602916 , 603159 , 603954 , 604003 , 606217 , 607442 , 613316 , 613970 , 616787 , 621946 , 623357 , 626485 , 627074 , 627700 , 627764 , 636154 , 653557 , 659272 );
Copy
14.86 ms (14.33%)
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
598500
606217
613316
613970
627764
595500
598844
601906
626485
406075
408675
480521
472474
527468
539336
485315
561328
562995
565351
571027
572885
584125
546757
555953
576095
565185
574244
579038
653557
659272
558524
579273
596823
621946
636154
589721
603159
604003
607442
616787
627074
465394
427550
519345
525525
488904
496569
509100
516214
520445
492525
511837
522930
542903
627700
599103
602916
469198
430553
516308
515793
524848
537198
548870
603954
623357
491823
509802
514070
565186
]
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 (598500 , 606217 , 613316 , 613970 , 627764 , 595500 , 598844 , 601906 , 626485 , 406075 , 408675 , 480521 , 472474 , 527468 , 539336 , 485315 , 561328 , 562995 , 565351 , 571027 , 572885 , 584125 , 546757 , 555953 , 576095 , 565185 , 574244 , 579038 , 653557 , 659272 , 558524 , 579273 , 596823 , 621946 , 636154 , 589721 , 603159 , 604003 , 607442 , 616787 , 627074 , 465394 , 427550 , 519345 , 525525 , 488904 , 496569 , 509100 , 516214 , 520445 , 492525 , 511837 , 522930 , 542903 , 627700 , 599103 , 602916 , 469198 , 430553 , 516308 , 515793 , 524848 , 537198 , 548870 , 603954 , 623357 , 491823 , 509802 , 514070 , 565186 );
Copy
2.85 ms (2.75%)
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
406075
408675
427550
430553
465394
469198
472474
480521
485315
488904
491823
492525
496569
509100
509802
511837
514070
515793
516214
516308
519345
520445
522930
524848
525525
527468
537198
539336
542903
546757
548870
555953
558524
561328
562995
565185
565186
565351
571027
572885
574244
576095
579038
579273
584125
589721
595500
596823
598500
598844
599103
601906
602916
603159
603954
604003
606217
607442
613316
613970
616787
621946
623357
626485
627074
627700
627764
636154
653557
659272
]
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 (406075 , 408675 , 427550 , 430553 , 465394 , 469198 , 472474 , 480521 , 485315 , 488904 , 491823 , 492525 , 496569 , 509100 , 509802 , 511837 , 514070 , 515793 , 516214 , 516308 , 519345 , 520445 , 522930 , 524848 , 525525 , 527468 , 537198 , 539336 , 542903 , 546757 , 548870 , 555953 , 558524 , 561328 , 562995 , 565185 , 565186 , 565351 , 571027 , 572885 , 574244 , 576095 , 579038 , 579273 , 584125 , 589721 , 595500 , 596823 , 598500 , 598844 , 599103 , 601906 , 602916 , 603159 , 603954 , 604003 , 606217 , 607442 , 613316 , 613970 , 616787 , 621946 , 623357 , 626485 , 627074 , 627700 , 627764 , 636154 , 653557 , 659272 );
Copy