3
7.91 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
606884
694707
787155
692365
483496
775809
764919
617220
619775
511934
727205
793223
727190
763280
780675
807470
498431
793121
576266
807499
799645
625689
617199
807477
739537
507893
783998
625680
559567
558347
559558
765243
521049
625686
509339
483851
610676
617195
523782
528838
827884
827861
588642
827868
827833
827908
827890
827912
827857
827887
550720
827842
481945
827903
460182
476911
487190
548871
548848
548868
510256
548870
]
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 (606884 , 694707 , 787155 , 692365 , 483496 , 775809 , 764919 , 617220 , 619775 , 511934 , 727205 , 793223 , 727190 , 763280 , 780675 , 807470 , 498431 , 793121 , 576266 , 807499 , 799645 , 625689 , 617199 , 807477 , 739537 , 507893 , 783998 , 625680 , 559567 , 558347 , 559558 , 765243 , 521049 , 625686 , 509339 , 483851 , 610676 , 617195 , 523782 , 528838 , 827884 , 827861 , 588642 , 827868 , 827833 , 827908 , 827890 , 827912 , 827857 , 827887 , 550720 , 827842 , 481945 , 827903 , 460182 , 476911 , 487190 , 548871 , 548848 , 548868 , 510256 , 548870 );
Copy
4
3.09 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
460182
476911
481945
483496
483851
487190
498431
507893
509339
510256
511934
521049
523782
528838
548848
548868
548870
548871
550720
558347
559558
559567
576266
588642
606884
610676
617195
617199
617220
619775
625680
625686
625689
692365
694707
727190
727205
739537
763280
764919
765243
775809
780675
783998
787155
793121
793223
799645
807470
807477
807499
827833
827842
827857
827861
827868
827884
827887
827890
827903
827908
827912
]
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 (460182 , 476911 , 481945 , 483496 , 483851 , 487190 , 498431 , 507893 , 509339 , 510256 , 511934 , 521049 , 523782 , 528838 , 548848 , 548868 , 548870 , 548871 , 550720 , 558347 , 559558 , 559567 , 576266 , 588642 , 606884 , 610676 , 617195 , 617199 , 617220 , 619775 , 625680 , 625686 , 625689 , 692365 , 694707 , 727190 , 727205 , 739537 , 763280 , 764919 , 765243 , 775809 , 780675 , 783998 , 787155 , 793121 , 793223 , 799645 , 807470 , 807477 , 807499 , 827833 , 827842 , 827857 , 827861 , 827868 , 827884 , 827887 , 827890 , 827903 , 827908 , 827912 );
Copy
5
67.54 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
460182
476911
481945
483496
483851
487190
498431
507893
509339
510256
511934
521049
523782
528838
548848
548868
548870
548871
550720
558347
559558
559567
576266
588642
606884
610676
617195
617199
617220
619775
625680
625686
625689
692365
694707
727190
727205
739537
763280
764919
765243
775809
780675
783998
787155
793121
793223
799645
807470
807477
807499
827833
827842
827857
827861
827868
827884
827887
827890
827903
827908
827912
]
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 (460182 , 476911 , 481945 , 483496 , 483851 , 487190 , 498431 , 507893 , 509339 , 510256 , 511934 , 521049 , 523782 , 528838 , 548848 , 548868 , 548870 , 548871 , 550720 , 558347 , 559558 , 559567 , 576266 , 588642 , 606884 , 610676 , 617195 , 617199 , 617220 , 619775 , 625680 , 625686 , 625689 , 692365 , 694707 , 727190 , 727205 , 739537 , 763280 , 764919 , 765243 , 775809 , 780675 , 783998 , 787155 , 793121 , 793223 , 799645 , 807470 , 807477 , 807499 , 827833 , 827842 , 827857 , 827861 , 827868 , 827884 , 827887 , 827890 , 827903 , 827908 , 827912 );
Copy