3
9.75 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
490079
507500
505977
565279
672671
687174
683588
592314
596412
476823
501804
510203
461122
565188
551147
586549
473974
501752
493218
519661
501774
659439
676987
677387
463674
475172
527793
581701
563878
501732
524016
600381
605936
558958
659412
492002
469553
501748
513768
499148
671667
677020
494692
586597
475483
582493
677060
558905
463913
517358
522663
593939
529497
492267
561452
563884
413826
618442
581684
521989
599452
622932
620546
536397
677025
565067
]
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 (490079 , 507500 , 505977 , 565279 , 672671 , 687174 , 683588 , 592314 , 596412 , 476823 , 501804 , 510203 , 461122 , 565188 , 551147 , 586549 , 473974 , 501752 , 493218 , 519661 , 501774 , 659439 , 676987 , 677387 , 463674 , 475172 , 527793 , 581701 , 563878 , 501732 , 524016 , 600381 , 605936 , 558958 , 659412 , 492002 , 469553 , 501748 , 513768 , 499148 , 671667 , 677020 , 494692 , 586597 , 475483 , 582493 , 677060 , 558905 , 463913 , 517358 , 522663 , 593939 , 529497 , 492267 , 561452 , 563884 , 413826 , 618442 , 581684 , 521989 , 599452 , 622932 , 620546 , 536397 , 677025 , 565067 );
Copy
4
1.64 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
413826
461122
463674
463913
469553
473974
475172
475483
476823
490079
492002
492267
493218
494692
499148
501732
501748
501752
501774
501804
505977
507500
510203
513768
517358
519661
521989
522663
524016
527793
529497
536397
551147
558905
558958
561452
563878
563884
565067
565188
565279
581684
581701
582493
586549
586597
592314
593939
596412
599452
600381
605936
618442
620546
622932
659412
659439
671667
672671
676987
677020
677025
677060
677387
683588
687174
]
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 (413826 , 461122 , 463674 , 463913 , 469553 , 473974 , 475172 , 475483 , 476823 , 490079 , 492002 , 492267 , 493218 , 494692 , 499148 , 501732 , 501748 , 501752 , 501774 , 501804 , 505977 , 507500 , 510203 , 513768 , 517358 , 519661 , 521989 , 522663 , 524016 , 527793 , 529497 , 536397 , 551147 , 558905 , 558958 , 561452 , 563878 , 563884 , 565067 , 565188 , 565279 , 581684 , 581701 , 582493 , 586549 , 586597 , 592314 , 593939 , 596412 , 599452 , 600381 , 605936 , 618442 , 620546 , 622932 , 659412 , 659439 , 671667 , 672671 , 676987 , 677020 , 677025 , 677060 , 677387 , 683588 , 687174 );
Copy
5
135.16 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
413826
461122
463674
463913
469553
473974
475172
475483
476823
490079
492002
492267
493218
494692
499148
501732
501748
501752
501774
501804
505977
507500
510203
513768
517358
519661
521989
522663
524016
527793
529497
536397
551147
558905
558958
561452
563878
563884
565067
565188
565279
581684
581701
582493
586549
586597
592314
593939
596412
599452
600381
605936
618442
620546
622932
659412
659439
671667
672671
676987
677020
677025
677060
677387
683588
687174
]
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 (413826 , 461122 , 463674 , 463913 , 469553 , 473974 , 475172 , 475483 , 476823 , 490079 , 492002 , 492267 , 493218 , 494692 , 499148 , 501732 , 501748 , 501752 , 501774 , 501804 , 505977 , 507500 , 510203 , 513768 , 517358 , 519661 , 521989 , 522663 , 524016 , 527793 , 529497 , 536397 , 551147 , 558905 , 558958 , 561452 , 563878 , 563884 , 565067 , 565188 , 565279 , 581684 , 581701 , 582493 , 586549 , 586597 , 592314 , 593939 , 596412 , 599452 , 600381 , 605936 , 618442 , 620546 , 622932 , 659412 , 659439 , 671667 , 672671 , 676987 , 677020 , 677025 , 677060 , 677387 , 683588 , 687174 );
Copy