3
8.93 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
486327
692180
648650
794086
681729
648017
668007
609073
597180
782352
786380
740303
796792
568820
577308
727681
823131
707512
588695
778839
777335
723087
557723
589857
776253
810441
612763
617245
425573
570081
698354
788071
460581
624078
740646
809992
508223
483258
531380
562868
700735
615138
445145
700724
707843
810388
432991
419982
427213
764652
700726
432910
451050
422034
479403
554621
670742
601444
497834
529338
655591
448074
462526
]
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 (486327 , 692180 , 648650 , 794086 , 681729 , 648017 , 668007 , 609073 , 597180 , 782352 , 786380 , 740303 , 796792 , 568820 , 577308 , 727681 , 823131 , 707512 , 588695 , 778839 , 777335 , 723087 , 557723 , 589857 , 776253 , 810441 , 612763 , 617245 , 425573 , 570081 , 698354 , 788071 , 460581 , 624078 , 740646 , 809992 , 508223 , 483258 , 531380 , 562868 , 700735 , 615138 , 445145 , 700724 , 707843 , 810388 , 432991 , 419982 , 427213 , 764652 , 700726 , 432910 , 451050 , 422034 , 479403 , 554621 , 670742 , 601444 , 497834 , 529338 , 655591 , 448074 , 462526 );
Copy
4
2.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
419982
422034
425573
427213
432910
432991
445145
448074
451050
460581
462526
479403
483258
486327
497834
508223
529338
531380
554621
557723
562868
568820
570081
577308
588695
589857
597180
601444
609073
612763
615138
617245
624078
648017
648650
655591
668007
670742
681729
692180
698354
700724
700726
700735
707512
707843
723087
727681
740303
740646
764652
776253
777335
778839
782352
786380
788071
794086
796792
809992
810388
810441
823131
]
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 (419982 , 422034 , 425573 , 427213 , 432910 , 432991 , 445145 , 448074 , 451050 , 460581 , 462526 , 479403 , 483258 , 486327 , 497834 , 508223 , 529338 , 531380 , 554621 , 557723 , 562868 , 568820 , 570081 , 577308 , 588695 , 589857 , 597180 , 601444 , 609073 , 612763 , 615138 , 617245 , 624078 , 648017 , 648650 , 655591 , 668007 , 670742 , 681729 , 692180 , 698354 , 700724 , 700726 , 700735 , 707512 , 707843 , 723087 , 727681 , 740303 , 740646 , 764652 , 776253 , 777335 , 778839 , 782352 , 786380 , 788071 , 794086 , 796792 , 809992 , 810388 , 810441 , 823131 );
Copy
5
101.63 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
419982
422034
425573
427213
432910
432991
445145
448074
451050
460581
462526
479403
483258
486327
497834
508223
529338
531380
554621
557723
562868
568820
570081
577308
588695
589857
597180
601444
609073
612763
615138
617245
624078
648017
648650
655591
668007
670742
681729
692180
698354
700724
700726
700735
707512
707843
723087
727681
740303
740646
764652
776253
777335
778839
782352
786380
788071
794086
796792
809992
810388
810441
823131
]
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 (419982 , 422034 , 425573 , 427213 , 432910 , 432991 , 445145 , 448074 , 451050 , 460581 , 462526 , 479403 , 483258 , 486327 , 497834 , 508223 , 529338 , 531380 , 554621 , 557723 , 562868 , 568820 , 570081 , 577308 , 588695 , 589857 , 597180 , 601444 , 609073 , 612763 , 615138 , 617245 , 624078 , 648017 , 648650 , 655591 , 668007 , 670742 , 681729 , 692180 , 698354 , 700724 , 700726 , 700735 , 707512 , 707843 , 723087 , 727681 , 740303 , 740646 , 764652 , 776253 , 777335 , 778839 , 782352 , 786380 , 788071 , 794086 , 796792 , 809992 , 810388 , 810441 , 823131 );
Copy