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
813693
720626
765782
719201
780219
744895
754703
706693
587340
398828
647586
793771
603723
482116
413963
817983
715223
795998
672982
460193
584860
675170
708886
807142
770563
815429
646927
625599
803394
728201
461655
188462
437863
501717
612321
493493
491120
507712
527645
680944
590327
595375
482773
470403
427543
459870
455752
455866
455859
523811
585945
543816
465608
457630
599299
698124
496997
419956
447948
528327
527908
636209
631504
]
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 (813693 , 720626 , 765782 , 719201 , 780219 , 744895 , 754703 , 706693 , 587340 , 398828 , 647586 , 793771 , 603723 , 482116 , 413963 , 817983 , 715223 , 795998 , 672982 , 460193 , 584860 , 675170 , 708886 , 807142 , 770563 , 815429 , 646927 , 625599 , 803394 , 728201 , 461655 , 188462 , 437863 , 501717 , 612321 , 493493 , 491120 , 507712 , 527645 , 680944 , 590327 , 595375 , 482773 , 470403 , 427543 , 459870 , 455752 , 455866 , 455859 , 523811 , 585945 , 543816 , 465608 , 457630 , 599299 , 698124 , 496997 , 419956 , 447948 , 528327 , 527908 , 636209 , 631504 );
Copy
4
3.29 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
188462
398828
413963
419956
427543
437863
447948
455752
455859
455866
457630
459870
460193
461655
465608
470403
482116
482773
491120
493493
496997
501717
507712
523811
527645
527908
528327
543816
584860
585945
587340
590327
595375
599299
603723
612321
625599
631504
636209
646927
647586
672982
675170
680944
698124
706693
708886
715223
719201
720626
728201
744895
754703
770563
780219
793771
795998
803394
807142
813693
815429
817983
]
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 (188462 , 398828 , 413963 , 419956 , 427543 , 437863 , 447948 , 455752 , 455859 , 455866 , 457630 , 459870 , 460193 , 461655 , 465608 , 470403 , 482116 , 482773 , 491120 , 493493 , 496997 , 501717 , 507712 , 523811 , 527645 , 527908 , 528327 , 543816 , 584860 , 585945 , 587340 , 590327 , 595375 , 599299 , 603723 , 612321 , 625599 , 631504 , 636209 , 646927 , 647586 , 672982 , 675170 , 680944 , 698124 , 706693 , 708886 , 715223 , 719201 , 720626 , 728201 , 744895 , 754703 , 770563 , 780219 , 793771 , 795998 , 803394 , 807142 , 813693 , 815429 , 817983 );
Copy
5
126.83 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
188462
398828
413963
419956
427543
437863
447948
455752
455859
455866
457630
459870
460193
461655
465608
470403
482116
482773
491120
493493
496997
501717
507712
523811
527645
527908
528327
543816
584860
585945
587340
590327
595375
599299
603723
612321
625599
631504
636209
646927
647586
672982
675170
680944
698124
706693
708886
715223
719201
720626
728201
744895
754703
770563
780219
793771
795998
803394
807142
813693
815429
817983
]
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 (188462 , 398828 , 413963 , 419956 , 427543 , 437863 , 447948 , 455752 , 455859 , 455866 , 457630 , 459870 , 460193 , 461655 , 465608 , 470403 , 482116 , 482773 , 491120 , 493493 , 496997 , 501717 , 507712 , 523811 , 527645 , 527908 , 528327 , 543816 , 584860 , 585945 , 587340 , 590327 , 595375 , 599299 , 603723 , 612321 , 625599 , 631504 , 636209 , 646927 , 647586 , 672982 , 675170 , 680944 , 698124 , 706693 , 708886 , 715223 , 719201 , 720626 , 728201 , 744895 , 754703 , 770563 , 780219 , 793771 , 795998 , 803394 , 807142 , 813693 , 815429 , 817983 );
Copy