3
9.00 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
800251
767805
545307
563764
687934
764603
787518
765410
790592
512592
570089
593189
787269
723590
697723
787233
802012
695432
793739
777499
627712
731468
610082
516952
646980
792264
526810
787392
767807
557809
734523
567587
728865
786754
518126
767529
664777
710822
689107
780246
458999
719727
779573
674603
786826
792514
569253
529996
479615
628823
777526
608313
680094
608318
692737
597145
521204
505794
692710
802001
459008
525684
505795
508364
]
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 (800251 , 767805 , 545307 , 563764 , 687934 , 764603 , 787518 , 765410 , 790592 , 512592 , 570089 , 593189 , 787269 , 723590 , 697723 , 787233 , 802012 , 695432 , 793739 , 777499 , 627712 , 731468 , 610082 , 516952 , 646980 , 792264 , 526810 , 787392 , 767807 , 557809 , 734523 , 567587 , 728865 , 786754 , 518126 , 767529 , 664777 , 710822 , 689107 , 780246 , 458999 , 719727 , 779573 , 674603 , 786826 , 792514 , 569253 , 529996 , 479615 , 628823 , 777526 , 608313 , 680094 , 608318 , 692737 , 597145 , 521204 , 505794 , 692710 , 802001 , 459008 , 525684 , 505795 , 508364 );
Copy
4
2.59 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
458999
459008
479615
505795
508364
512592
516952
518126
521204
525684
526810
529996
545307
557809
563764
567587
569253
570089
593189
597145
608313
608318
610082
627712
628823
646980
664777
674603
680094
687934
689107
692710
692737
695432
697723
710822
719727
723590
728865
731468
734523
764603
765410
767529
767805
767807
777499
777526
779573
780246
786754
786826
787233
787269
787392
787518
790592
792264
792514
793739
800251
802001
802012
]
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 (458999 , 459008 , 479615 , 505795 , 508364 , 512592 , 516952 , 518126 , 521204 , 525684 , 526810 , 529996 , 545307 , 557809 , 563764 , 567587 , 569253 , 570089 , 593189 , 597145 , 608313 , 608318 , 610082 , 627712 , 628823 , 646980 , 664777 , 674603 , 680094 , 687934 , 689107 , 692710 , 692737 , 695432 , 697723 , 710822 , 719727 , 723590 , 728865 , 731468 , 734523 , 764603 , 765410 , 767529 , 767805 , 767807 , 777499 , 777526 , 779573 , 780246 , 786754 , 786826 , 787233 , 787269 , 787392 , 787518 , 790592 , 792264 , 792514 , 793739 , 800251 , 802001 , 802012 );
Copy
5
70.92 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
458999
459008
479615
505795
508364
512592
516952
518126
521204
525684
526810
529996
545307
557809
563764
567587
569253
570089
593189
597145
608313
608318
610082
627712
628823
646980
664777
674603
680094
687934
689107
692710
692737
695432
697723
710822
719727
723590
728865
731468
734523
764603
765410
767529
767805
767807
777499
777526
779573
780246
786754
786826
787233
787269
787392
787518
790592
792264
792514
793739
800251
802001
802012
]
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 (458999 , 459008 , 479615 , 505795 , 508364 , 512592 , 516952 , 518126 , 521204 , 525684 , 526810 , 529996 , 545307 , 557809 , 563764 , 567587 , 569253 , 570089 , 593189 , 597145 , 608313 , 608318 , 610082 , 627712 , 628823 , 646980 , 664777 , 674603 , 680094 , 687934 , 689107 , 692710 , 692737 , 695432 , 697723 , 710822 , 719727 , 723590 , 728865 , 731468 , 734523 , 764603 , 765410 , 767529 , 767805 , 767807 , 777499 , 777526 , 779573 , 780246 , 786754 , 786826 , 787233 , 787269 , 787392 , 787518 , 790592 , 792264 , 792514 , 793739 , 800251 , 802001 , 802012 );
Copy