3
13.48 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
824698
762134
610872
599705
800391
620194
789133
828110
629696
766179
716346
736886
746272
698818
627059
737610
793241
791498
688195
769072
761895
726554
620837
532354
621278
767459
762051
741214
796523
508614
598492
595981
777116
768989
501517
438712
825465
489451
524118
553254
797142
470822
480955
481830
499579
580871
624044
442148
649563
550586
551856
624694
601892
461210
450921
420609
508083
512166
495222
555040
799366
423522
515494
521809
559073
439575
521040
602092
499597
]
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 (824698 , 762134 , 610872 , 599705 , 800391 , 620194 , 789133 , 828110 , 629696 , 766179 , 716346 , 736886 , 746272 , 698818 , 627059 , 737610 , 793241 , 791498 , 688195 , 769072 , 761895 , 726554 , 620837 , 532354 , 621278 , 767459 , 762051 , 741214 , 796523 , 508614 , 598492 , 595981 , 777116 , 768989 , 501517 , 438712 , 825465 , 489451 , 524118 , 553254 , 797142 , 470822 , 480955 , 481830 , 499579 , 580871 , 624044 , 442148 , 649563 , 550586 , 551856 , 624694 , 601892 , 461210 , 450921 , 420609 , 508083 , 512166 , 495222 , 555040 , 799366 , 423522 , 515494 , 521809 , 559073 , 439575 , 521040 , 602092 , 499597 );
Copy
4
3.41 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
420609
423522
438712
439575
442148
450921
461210
470822
480955
481830
489451
495222
499579
499597
501517
508083
508614
512166
515494
521040
521809
524118
532354
550586
551856
553254
555040
559073
580871
595981
598492
599705
601892
602092
610872
620194
620837
621278
624044
624694
627059
629696
649563
688195
698818
716346
726554
736886
737610
741214
746272
761895
762051
762134
766179
767459
768989
769072
777116
789133
791498
793241
796523
797142
799366
800391
824698
825465
828110
]
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 (420609 , 423522 , 438712 , 439575 , 442148 , 450921 , 461210 , 470822 , 480955 , 481830 , 489451 , 495222 , 499579 , 499597 , 501517 , 508083 , 508614 , 512166 , 515494 , 521040 , 521809 , 524118 , 532354 , 550586 , 551856 , 553254 , 555040 , 559073 , 580871 , 595981 , 598492 , 599705 , 601892 , 602092 , 610872 , 620194 , 620837 , 621278 , 624044 , 624694 , 627059 , 629696 , 649563 , 688195 , 698818 , 716346 , 726554 , 736886 , 737610 , 741214 , 746272 , 761895 , 762051 , 762134 , 766179 , 767459 , 768989 , 769072 , 777116 , 789133 , 791498 , 793241 , 796523 , 797142 , 799366 , 800391 , 824698 , 825465 , 828110 );
Copy
5
157.31 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
420609
423522
438712
439575
442148
450921
461210
470822
480955
481830
489451
495222
499579
499597
501517
508083
508614
512166
515494
521040
521809
524118
532354
550586
551856
553254
555040
559073
580871
595981
598492
599705
601892
602092
610872
620194
620837
621278
624044
624694
627059
629696
649563
688195
698818
716346
726554
736886
737610
741214
746272
761895
762051
762134
766179
767459
768989
769072
777116
789133
791498
793241
796523
797142
799366
800391
824698
825465
828110
]
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 (420609 , 423522 , 438712 , 439575 , 442148 , 450921 , 461210 , 470822 , 480955 , 481830 , 489451 , 495222 , 499579 , 499597 , 501517 , 508083 , 508614 , 512166 , 515494 , 521040 , 521809 , 524118 , 532354 , 550586 , 551856 , 553254 , 555040 , 559073 , 580871 , 595981 , 598492 , 599705 , 601892 , 602092 , 610872 , 620194 , 620837 , 621278 , 624044 , 624694 , 627059 , 629696 , 649563 , 688195 , 698818 , 716346 , 726554 , 736886 , 737610 , 741214 , 746272 , 761895 , 762051 , 762134 , 766179 , 767459 , 768989 , 769072 , 777116 , 789133 , 791498 , 793241 , 796523 , 797142 , 799366 , 800391 , 824698 , 825465 , 828110 );
Copy