3
13.42 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
573099
576054
575066
522565
621986
575488
576344
712063
575070
635902
573116
575453
574874
575805
573681
575454
576406
573089
573882
574810
575812
576028
571635
527623
510618
513284
524694
575122
575203
575137
527630
511707
513272
575486
575503
575097
576063
576370
552632
554365
575807
554366
574849
447812
466113
491654
511731
513278
484097
514384
575464
576372
491659
575458
575150
575470
575748
576041
576079
575087
576023
576416
575088
576056
576030
455096
522567
510612
491689
597119
575802
576082
574792
491664
576412
]
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 (573099 , 576054 , 575066 , 522565 , 621986 , 575488 , 576344 , 712063 , 575070 , 635902 , 573116 , 575453 , 574874 , 575805 , 573681 , 575454 , 576406 , 573089 , 573882 , 574810 , 575812 , 576028 , 571635 , 527623 , 510618 , 513284 , 524694 , 575122 , 575203 , 575137 , 527630 , 511707 , 513272 , 575486 , 575503 , 575097 , 576063 , 576370 , 552632 , 554365 , 575807 , 554366 , 574849 , 447812 , 466113 , 491654 , 511731 , 513278 , 484097 , 514384 , 575464 , 576372 , 491659 , 575458 , 575150 , 575470 , 575748 , 576041 , 576079 , 575087 , 576023 , 576416 , 575088 , 576056 , 576030 , 455096 , 522567 , 510612 , 491689 , 597119 , 575802 , 576082 , 574792 , 491664 , 576412 );
Copy
4
2.36 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
447812
455096
466113
484097
491654
491659
491664
491689
510612
510618
511707
511731
513272
513278
513284
514384
522565
522567
524694
527623
527630
552632
554365
554366
571635
573089
573099
573116
573681
573882
574792
574810
574849
574874
575066
575070
575087
575088
575097
575122
575137
575150
575203
575453
575454
575458
575464
575470
575486
575488
575503
575748
575802
575805
575807
575812
576023
576028
576030
576041
576054
576056
576063
576079
576082
576344
576370
576372
576406
576412
576416
597119
621986
635902
712063
]
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 (447812 , 455096 , 466113 , 484097 , 491654 , 491659 , 491664 , 491689 , 510612 , 510618 , 511707 , 511731 , 513272 , 513278 , 513284 , 514384 , 522565 , 522567 , 524694 , 527623 , 527630 , 552632 , 554365 , 554366 , 571635 , 573089 , 573099 , 573116 , 573681 , 573882 , 574792 , 574810 , 574849 , 574874 , 575066 , 575070 , 575087 , 575088 , 575097 , 575122 , 575137 , 575150 , 575203 , 575453 , 575454 , 575458 , 575464 , 575470 , 575486 , 575488 , 575503 , 575748 , 575802 , 575805 , 575807 , 575812 , 576023 , 576028 , 576030 , 576041 , 576054 , 576056 , 576063 , 576079 , 576082 , 576344 , 576370 , 576372 , 576406 , 576412 , 576416 , 597119 , 621986 , 635902 , 712063 );
Copy
5
93.90 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
447812
455096
466113
484097
491654
491659
491664
491689
510612
510618
511707
511731
513272
513278
513284
514384
522565
522567
524694
527623
527630
552632
554365
554366
571635
573089
573099
573116
573681
573882
574792
574810
574849
574874
575066
575070
575087
575088
575097
575122
575137
575150
575203
575453
575454
575458
575464
575470
575486
575488
575503
575748
575802
575805
575807
575812
576023
576028
576030
576041
576054
576056
576063
576079
576082
576344
576370
576372
576406
576412
576416
597119
621986
635902
712063
]
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 (447812 , 455096 , 466113 , 484097 , 491654 , 491659 , 491664 , 491689 , 510612 , 510618 , 511707 , 511731 , 513272 , 513278 , 513284 , 514384 , 522565 , 522567 , 524694 , 527623 , 527630 , 552632 , 554365 , 554366 , 571635 , 573089 , 573099 , 573116 , 573681 , 573882 , 574792 , 574810 , 574849 , 574874 , 575066 , 575070 , 575087 , 575088 , 575097 , 575122 , 575137 , 575150 , 575203 , 575453 , 575454 , 575458 , 575464 , 575470 , 575486 , 575488 , 575503 , 575748 , 575802 , 575805 , 575807 , 575812 , 576023 , 576028 , 576030 , 576041 , 576054 , 576056 , 576063 , 576079 , 576082 , 576344 , 576370 , 576372 , 576406 , 576412 , 576416 , 597119 , 621986 , 635902 , 712063 );
Copy