3
12.49 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
826826
821146
761122
824231
784888
813518
777471
827882
397660
485894
764280
459686
772017
421655
461828
591790
777750
790812
780507
421621
729037
527675
429455
424996
723585
587171
472175
483051
424255
592958
524094
780015
434156
481802
573391
596642
456300
516966
498238
524199
524509
419361
521153
610808
784794
764703
497805
561481
421357
446054
496764
450585
499953
563553
598765
464516
524535
599421
519510
584739
422044
562637
526813
520105
521815
613204
620493
622668
]
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 (826826 , 821146 , 761122 , 824231 , 784888 , 813518 , 777471 , 827882 , 397660 , 485894 , 764280 , 459686 , 772017 , 421655 , 461828 , 591790 , 777750 , 790812 , 780507 , 421621 , 729037 , 527675 , 429455 , 424996 , 723585 , 587171 , 472175 , 483051 , 424255 , 592958 , 524094 , 780015 , 434156 , 481802 , 573391 , 596642 , 456300 , 516966 , 498238 , 524199 , 524509 , 419361 , 521153 , 610808 , 784794 , 764703 , 497805 , 561481 , 421357 , 446054 , 496764 , 450585 , 499953 , 563553 , 598765 , 464516 , 524535 , 599421 , 519510 , 584739 , 422044 , 562637 , 526813 , 520105 , 521815 , 613204 , 620493 , 622668 );
Copy
4
2.33 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
397660
419361
421357
421621
421655
422044
424255
424996
429455
434156
446054
450585
456300
459686
461828
464516
472175
481802
483051
485894
496764
497805
498238
499953
516966
519510
520105
521153
521815
524094
524199
524509
524535
526813
527675
561481
562637
563553
573391
584739
587171
591790
592958
596642
598765
599421
610808
613204
620493
622668
723585
729037
761122
764280
764703
772017
777471
777750
780015
780507
784794
784888
790812
813518
821146
824231
826826
827882
]
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 (397660 , 419361 , 421357 , 421621 , 421655 , 422044 , 424255 , 424996 , 429455 , 434156 , 446054 , 450585 , 456300 , 459686 , 461828 , 464516 , 472175 , 481802 , 483051 , 485894 , 496764 , 497805 , 498238 , 499953 , 516966 , 519510 , 520105 , 521153 , 521815 , 524094 , 524199 , 524509 , 524535 , 526813 , 527675 , 561481 , 562637 , 563553 , 573391 , 584739 , 587171 , 591790 , 592958 , 596642 , 598765 , 599421 , 610808 , 613204 , 620493 , 622668 , 723585 , 729037 , 761122 , 764280 , 764703 , 772017 , 777471 , 777750 , 780015 , 780507 , 784794 , 784888 , 790812 , 813518 , 821146 , 824231 , 826826 , 827882 );
Copy
5
78.39 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
397660
419361
421357
421621
421655
422044
424255
424996
429455
434156
446054
450585
456300
459686
461828
464516
472175
481802
483051
485894
496764
497805
498238
499953
516966
519510
520105
521153
521815
524094
524199
524509
524535
526813
527675
561481
562637
563553
573391
584739
587171
591790
592958
596642
598765
599421
610808
613204
620493
622668
723585
729037
761122
764280
764703
772017
777471
777750
780015
780507
784794
784888
790812
813518
821146
824231
826826
827882
]
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 (397660 , 419361 , 421357 , 421621 , 421655 , 422044 , 424255 , 424996 , 429455 , 434156 , 446054 , 450585 , 456300 , 459686 , 461828 , 464516 , 472175 , 481802 , 483051 , 485894 , 496764 , 497805 , 498238 , 499953 , 516966 , 519510 , 520105 , 521153 , 521815 , 524094 , 524199 , 524509 , 524535 , 526813 , 527675 , 561481 , 562637 , 563553 , 573391 , 584739 , 587171 , 591790 , 592958 , 596642 , 598765 , 599421 , 610808 , 613204 , 620493 , 622668 , 723585 , 729037 , 761122 , 764280 , 764703 , 772017 , 777471 , 777750 , 780015 , 780507 , 784794 , 784888 , 790812 , 813518 , 821146 , 824231 , 826826 , 827882 );
Copy