135.26 ms (86.90%)
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
451638
495041
500861
545042
562920
569641
574193
575910
587577
589296
589509
589977
590504
602033
616092
626470
637161
640266
672310
675886
677245
701970
710988
712415
723007
742650
750951
758583
768836
768861
769363
769368
773270
773278
773310
774681
778248
783380
783927
783960
785074
785086
785088
785100
785112
785163
785199
785780
786530
789395
792375
792461
797767
797822
802553
802939
804131
806474
806857
806876
810756
812672
813361
813364
813365
813369
814187
826055
]
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 (451638 , 495041 , 500861 , 545042 , 562920 , 569641 , 574193 , 575910 , 587577 , 589296 , 589509 , 589977 , 590504 , 602033 , 616092 , 626470 , 637161 , 640266 , 672310 , 675886 , 677245 , 701970 , 710988 , 712415 , 723007 , 742650 , 750951 , 758583 , 768836 , 768861 , 769363 , 769368 , 773270 , 773278 , 773310 , 774681 , 778248 , 783380 , 783927 , 783960 , 785074 , 785086 , 785088 , 785100 , 785112 , 785163 , 785199 , 785780 , 786530 , 789395 , 792375 , 792461 , 797767 , 797822 , 802553 , 802939 , 804131 , 806474 , 806857 , 806876 , 810756 , 812672 , 813361 , 813364 , 813365 , 813369 , 814187 , 826055 );
Copy
6.73 ms (4.32%)
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
785112
773278
562920
451638
769368
783380
792461
826055
814187
602033
785100
792375
616092
783960
804131
590504
785088
797822
802939
785163
758583
769374
786530
797767
701970
589977
813361
813365
768836
773270
545042
672310
712415
626470
640266
778248
769363
789395
802553
768861
785086
574193
677245
675886
810756
813369
723007
806474
750951
785199
742650
773310
783927
813364
710988
569641
637161
785780
806857
495041
575910
774681
806876
812672
589296
785074
500861
587577
589509
]
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 (785112 , 773278 , 562920 , 451638 , 769368 , 783380 , 792461 , 826055 , 814187 , 602033 , 785100 , 792375 , 616092 , 783960 , 804131 , 590504 , 785088 , 797822 , 802939 , 785163 , 758583 , 769374 , 786530 , 797767 , 701970 , 589977 , 813361 , 813365 , 768836 , 773270 , 545042 , 672310 , 712415 , 626470 , 640266 , 778248 , 769363 , 789395 , 802553 , 768861 , 785086 , 574193 , 677245 , 675886 , 810756 , 813369 , 723007 , 806474 , 750951 , 785199 , 742650 , 773310 , 783927 , 813364 , 710988 , 569641 , 637161 , 785780 , 806857 , 495041 , 575910 , 774681 , 806876 , 812672 , 589296 , 785074 , 500861 , 587577 , 589509 );
Copy
2.17 ms (1.40%)
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
451638
495041
500861
545042
562920
569641
574193
575910
587577
589296
589509
589977
590504
602033
616092
626470
637161
640266
672310
675886
677245
701970
710988
712415
723007
742650
750951
758583
768836
768861
769363
769368
773270
773278
773310
774681
778248
783380
783927
783960
785074
785086
785088
785100
785112
785163
785199
785780
786530
789395
792375
792461
797767
797822
802553
802939
804131
806474
806857
806876
810756
812672
813361
813364
813365
813369
814187
826055
]
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 (451638 , 495041 , 500861 , 545042 , 562920 , 569641 , 574193 , 575910 , 587577 , 589296 , 589509 , 589977 , 590504 , 602033 , 616092 , 626470 , 637161 , 640266 , 672310 , 675886 , 677245 , 701970 , 710988 , 712415 , 723007 , 742650 , 750951 , 758583 , 768836 , 768861 , 769363 , 769368 , 773270 , 773278 , 773310 , 774681 , 778248 , 783380 , 783927 , 783960 , 785074 , 785086 , 785088 , 785100 , 785112 , 785163 , 785199 , 785780 , 786530 , 789395 , 792375 , 792461 , 797767 , 797822 , 802553 , 802939 , 804131 , 806474 , 806857 , 806876 , 810756 , 812672 , 813361 , 813364 , 813365 , 813369 , 814187 , 826055 );
Copy