3
222.70 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
559712
441004
436178
651929
613221
609259
609140
470290
660306
621965
651938
652931
619539
595369
421839
535808
421907
625359
424480
508860
421871
624930
424364
546774
476797
470939
482492
484694
620686
596466
730233
483660
500578
596423
590667
441024
521784
420635
474663
560191
751565
608048
497921
620674
735778
615818
484688
605445
603854
651937
439819
607919
576310
590866
519727
462535
614921
622351
475891
597240
625001
618889
609279
598711
573389
640690
]
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 (559712 , 441004 , 436178 , 651929 , 613221 , 609259 , 609140 , 470290 , 660306 , 621965 , 651938 , 652931 , 619539 , 595369 , 421839 , 535808 , 421907 , 625359 , 424480 , 508860 , 421871 , 624930 , 424364 , 546774 , 476797 , 470939 , 482492 , 484694 , 620686 , 596466 , 730233 , 483660 , 500578 , 596423 , 590667 , 441024 , 521784 , 420635 , 474663 , 560191 , 751565 , 608048 , 497921 , 620674 , 735778 , 615818 , 484688 , 605445 , 603854 , 651937 , 439819 , 607919 , 576310 , 590866 , 519727 , 462535 , 614921 , 622351 , 475891 , 597240 , 625001 , 618889 , 609279 , 598711 , 573389 , 640690 );
Copy
4
3.35 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
420635
421839
421871
421907
424364
424480
436178
439819
441004
441024
462535
470290
470939
474663
475891
476797
482492
483660
484688
484694
497921
500578
508860
519727
521784
535808
546774
559712
560191
573389
576310
590667
590866
595369
596423
596466
597240
598711
603854
605445
607919
608048
609140
609259
609279
613221
614921
615818
618889
619539
620674
620686
621965
622351
624930
625001
625359
640690
651929
651937
651938
652931
660306
730233
735778
751565
]
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 (420635 , 421839 , 421871 , 421907 , 424364 , 424480 , 436178 , 439819 , 441004 , 441024 , 462535 , 470290 , 470939 , 474663 , 475891 , 476797 , 482492 , 483660 , 484688 , 484694 , 497921 , 500578 , 508860 , 519727 , 521784 , 535808 , 546774 , 559712 , 560191 , 573389 , 576310 , 590667 , 590866 , 595369 , 596423 , 596466 , 597240 , 598711 , 603854 , 605445 , 607919 , 608048 , 609140 , 609259 , 609279 , 613221 , 614921 , 615818 , 618889 , 619539 , 620674 , 620686 , 621965 , 622351 , 624930 , 625001 , 625359 , 640690 , 651929 , 651937 , 651938 , 652931 , 660306 , 730233 , 735778 , 751565 );
Copy
5
78.55 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
420635
421839
421871
421907
424364
424480
436178
439819
441004
441024
462535
470290
470939
474663
475891
476797
482492
483660
484688
484694
497921
500578
508860
519727
521784
535808
546774
559712
560191
573389
576310
590667
590866
595369
596423
596466
597240
598711
603854
605445
607919
608048
609140
609259
609279
613221
614921
615818
618889
619539
620674
620686
621965
622351
624930
625001
625359
640690
651929
651937
651938
652931
660306
730233
735778
751565
]
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 (420635 , 421839 , 421871 , 421907 , 424364 , 424480 , 436178 , 439819 , 441004 , 441024 , 462535 , 470290 , 470939 , 474663 , 475891 , 476797 , 482492 , 483660 , 484688 , 484694 , 497921 , 500578 , 508860 , 519727 , 521784 , 535808 , 546774 , 559712 , 560191 , 573389 , 576310 , 590667 , 590866 , 595369 , 596423 , 596466 , 597240 , 598711 , 603854 , 605445 , 607919 , 608048 , 609140 , 609259 , 609279 , 613221 , 614921 , 615818 , 618889 , 619539 , 620674 , 620686 , 621965 , 622351 , 624930 , 625001 , 625359 , 640690 , 651929 , 651937 , 651938 , 652931 , 660306 , 730233 , 735778 , 751565 );
Copy