3
10.39 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
105023
397103
532976
187996
618961
446753
719374
740052
422069
599548
811654
705767
641120
741646
532994
601928
631710
532903
521047
535005
538251
631665
602000
420347
536610
524589
828283
507651
580289
326043
671969
820942
578454
444657
548601
565186
573925
446755
397168
551148
577642
420341
507649
684658
485561
420344
620801
420342
420336
444227
474610
521914
471779
587133
433137
447500
520300
446740
507658
603128
507642
599317
522562
]
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 (105023 , 397103 , 532976 , 187996 , 618961 , 446753 , 719374 , 740052 , 422069 , 599548 , 811654 , 705767 , 641120 , 741646 , 532994 , 601928 , 631710 , 532903 , 521047 , 535005 , 538251 , 631665 , 602000 , 420347 , 536610 , 524589 , 828283 , 507651 , 580289 , 326043 , 671969 , 820942 , 578454 , 444657 , 548601 , 565186 , 573925 , 446755 , 397168 , 551148 , 577642 , 420341 , 507649 , 684658 , 485561 , 420344 , 620801 , 420342 , 420336 , 444227 , 474610 , 521914 , 471779 , 587133 , 433137 , 447500 , 520300 , 446740 , 507658 , 603128 , 507642 , 599317 , 522562 );
Copy
4
2.65 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
105023
187996
326043
397103
397168
420336
420341
420342
420344
420347
422069
433137
444227
444657
446740
446753
446755
447500
471779
474610
485561
507642
507649
507651
507658
520300
521047
521914
522562
524589
532903
532976
532994
535005
536610
538251
548601
551148
565186
573925
577642
578454
580289
587133
599317
599548
601928
602000
603128
618961
620801
631665
631710
641120
671969
684658
705767
719374
740052
741646
811654
820942
828283
]
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 (105023 , 187996 , 326043 , 397103 , 397168 , 420336 , 420341 , 420342 , 420344 , 420347 , 422069 , 433137 , 444227 , 444657 , 446740 , 446753 , 446755 , 447500 , 471779 , 474610 , 485561 , 507642 , 507649 , 507651 , 507658 , 520300 , 521047 , 521914 , 522562 , 524589 , 532903 , 532976 , 532994 , 535005 , 536610 , 538251 , 548601 , 551148 , 565186 , 573925 , 577642 , 578454 , 580289 , 587133 , 599317 , 599548 , 601928 , 602000 , 603128 , 618961 , 620801 , 631665 , 631710 , 641120 , 671969 , 684658 , 705767 , 719374 , 740052 , 741646 , 811654 , 820942 , 828283 );
Copy
5
75.89 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
105023
187996
326043
397103
397168
420336
420341
420342
420344
420347
422069
433137
444227
444657
446740
446753
446755
447500
471779
474610
485561
507642
507649
507651
507658
520300
521047
521914
522562
524589
532903
532976
532994
535005
536610
538251
548601
551148
565186
573925
577642
578454
580289
587133
599317
599548
601928
602000
603128
618961
620801
631665
631710
641120
671969
684658
705767
719374
740052
741646
811654
820942
828283
]
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 (105023 , 187996 , 326043 , 397103 , 397168 , 420336 , 420341 , 420342 , 420344 , 420347 , 422069 , 433137 , 444227 , 444657 , 446740 , 446753 , 446755 , 447500 , 471779 , 474610 , 485561 , 507642 , 507649 , 507651 , 507658 , 520300 , 521047 , 521914 , 522562 , 524589 , 532903 , 532976 , 532994 , 535005 , 536610 , 538251 , 548601 , 551148 , 565186 , 573925 , 577642 , 578454 , 580289 , 587133 , 599317 , 599548 , 601928 , 602000 , 603128 , 618961 , 620801 , 631665 , 631710 , 641120 , 671969 , 684658 , 705767 , 719374 , 740052 , 741646 , 811654 , 820942 , 828283 );
Copy