3
10.90 ms
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
382769
517888
699064
786264
699009
624368
624212
698293
509082
565059
696937
534339
597836
492147
509471
707855
624237
448557
565053
698289
469689
517265
565054
565044
565055
698972
559097
620281
622037
698708
387835
443593
683787
672408
594779
484088
475814
620764
623846
698302
682460
597947
715223
475816
443644
586468
417308
524404
565062
445993
489082
482173
574179
559095
597813
565051
620291
805347
465991
434664
498022
565046
565061
493033
492672
506827
624214
447537
475876
447677
597831
395406
520703
516091
]
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 (382769 , 517888 , 699064 , 786264 , 699009 , 624368 , 624212 , 698293 , 509082 , 565059 , 696937 , 534339 , 597836 , 492147 , 509471 , 707855 , 624237 , 448557 , 565053 , 698289 , 469689 , 517265 , 565054 , 565044 , 565055 , 698972 , 559097 , 620281 , 622037 , 698708 , 387835 , 443593 , 683787 , 672408 , 594779 , 484088 , 475814 , 620764 , 623846 , 698302 , 682460 , 597947 , 715223 , 475816 , 443644 , 586468 , 417308 , 524404 , 565062 , 445993 , 489082 , 482173 , 574179 , 559095 , 597813 , 565051 , 620291 , 805347 , 465991 , 434664 , 498022 , 565046 , 565061 , 493033 , 492672 , 506827 , 624214 , 447537 , 475876 , 447677 , 597831 , 395406 , 520703 , 516091 );
Copy
4
2.86 ms
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
382769
387835
395406
417308
434664
443593
443644
445993
447537
447677
448557
465991
469689
475814
475816
475876
482173
484088
489082
492147
492672
493033
498022
506827
509082
509471
516091
517265
517888
520703
524404
534339
559095
559097
565044
565046
565051
565053
565054
565055
565059
565061
565062
574179
586468
594779
597813
597831
597836
597947
620281
620291
620764
622037
623846
624212
624214
624237
624368
672408
682460
683787
696937
698289
698293
698302
698708
698972
699009
699064
707855
715223
786264
805347
]
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 (382769 , 387835 , 395406 , 417308 , 434664 , 443593 , 443644 , 445993 , 447537 , 447677 , 448557 , 465991 , 469689 , 475814 , 475816 , 475876 , 482173 , 484088 , 489082 , 492147 , 492672 , 493033 , 498022 , 506827 , 509082 , 509471 , 516091 , 517265 , 517888 , 520703 , 524404 , 534339 , 559095 , 559097 , 565044 , 565046 , 565051 , 565053 , 565054 , 565055 , 565059 , 565061 , 565062 , 574179 , 586468 , 594779 , 597813 , 597831 , 597836 , 597947 , 620281 , 620291 , 620764 , 622037 , 623846 , 624212 , 624214 , 624237 , 624368 , 672408 , 682460 , 683787 , 696937 , 698289 , 698293 , 698302 , 698708 , 698972 , 699009 , 699064 , 707855 , 715223 , 786264 , 805347 );
Copy
5
84.54 ms
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
382769
387835
395406
417308
434664
443593
443644
445993
447537
447677
448557
465991
469689
475814
475816
475876
482173
484088
489082
492147
492672
493033
498022
506827
509082
509471
516091
517265
517888
520703
524404
534339
559095
559097
565044
565046
565051
565053
565054
565055
565059
565061
565062
574179
586468
594779
597813
597831
597836
597947
620281
620291
620764
622037
623846
624212
624214
624237
624368
672408
682460
683787
696937
698289
698293
698302
698708
698972
699009
699064
707855
715223
786264
805347
]
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 (382769 , 387835 , 395406 , 417308 , 434664 , 443593 , 443644 , 445993 , 447537 , 447677 , 448557 , 465991 , 469689 , 475814 , 475816 , 475876 , 482173 , 484088 , 489082 , 492147 , 492672 , 493033 , 498022 , 506827 , 509082 , 509471 , 516091 , 517265 , 517888 , 520703 , 524404 , 534339 , 559095 , 559097 , 565044 , 565046 , 565051 , 565053 , 565054 , 565055 , 565059 , 565061 , 565062 , 574179 , 586468 , 594779 , 597813 , 597831 , 597836 , 597947 , 620281 , 620291 , 620764 , 622037 , 623846 , 624212 , 624214 , 624237 , 624368 , 672408 , 682460 , 683787 , 696937 , 698289 , 698293 , 698302 , 698708 , 698972 , 699009 , 699064 , 707855 , 715223 , 786264 , 805347 );
Copy