3
7.31 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
791207
488637
778822
717685
617357
605057
595015
534193
473703
719283
715027
764622
811952
813680
786156
723522
414710
726240
788029
757816
771442
810974
640304
630136
727810
630267
632635
725252
726232
563626
498880
558342
488476
557841
761712
75664
717366
602056
496586
560411
486007
626401
438049
599865
599927
668533
504946
456738
558615
756345
800514
783205
455947
400032
460211
728235
449844
454737
508076
500538
555318
479191
441448
513839
516794
432771
510004
675380
588039
]
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 (791207 , 488637 , 778822 , 717685 , 617357 , 605057 , 595015 , 534193 , 473703 , 719283 , 715027 , 764622 , 811952 , 813680 , 786156 , 723522 , 414710 , 726240 , 788029 , 757816 , 771442 , 810974 , 640304 , 630136 , 727810 , 630267 , 632635 , 725252 , 726232 , 563626 , 498880 , 558342 , 488476 , 557841 , 761712 , 75664 , 717366 , 602056 , 496586 , 560411 , 486007 , 626401 , 438049 , 599865 , 599927 , 668533 , 504946 , 456738 , 558615 , 756345 , 800514 , 783205 , 455947 , 400032 , 460211 , 728235 , 449844 , 454737 , 508076 , 500538 , 555318 , 479191 , 441448 , 513839 , 516794 , 432771 , 510004 , 675380 , 588039 );
Copy
4
2.51 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
75664
400032
414710
432771
438049
441448
449844
454737
455947
456738
460211
473703
479191
486007
488476
488637
496586
498880
500538
504946
508076
510004
513839
516794
534193
555318
557841
558342
558615
560411
563626
588039
595015
599865
599927
602056
605057
617357
626401
630136
630267
632635
640304
668533
675380
715027
717366
717685
719283
723522
725252
726232
726240
727810
728235
756345
757816
761712
764622
771442
778822
783205
786156
788029
791207
800514
810974
811952
813680
]
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 (75664 , 400032 , 414710 , 432771 , 438049 , 441448 , 449844 , 454737 , 455947 , 456738 , 460211 , 473703 , 479191 , 486007 , 488476 , 488637 , 496586 , 498880 , 500538 , 504946 , 508076 , 510004 , 513839 , 516794 , 534193 , 555318 , 557841 , 558342 , 558615 , 560411 , 563626 , 588039 , 595015 , 599865 , 599927 , 602056 , 605057 , 617357 , 626401 , 630136 , 630267 , 632635 , 640304 , 668533 , 675380 , 715027 , 717366 , 717685 , 719283 , 723522 , 725252 , 726232 , 726240 , 727810 , 728235 , 756345 , 757816 , 761712 , 764622 , 771442 , 778822 , 783205 , 786156 , 788029 , 791207 , 800514 , 810974 , 811952 , 813680 );
Copy
5
103.45 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
75664
400032
414710
432771
438049
441448
449844
454737
455947
456738
460211
473703
479191
486007
488476
488637
496586
498880
500538
504946
508076
510004
513839
516794
534193
555318
557841
558342
558615
560411
563626
588039
595015
599865
599927
602056
605057
617357
626401
630136
630267
632635
640304
668533
675380
715027
717366
717685
719283
723522
725252
726232
726240
727810
728235
756345
757816
761712
764622
771442
778822
783205
786156
788029
791207
800514
810974
811952
813680
]
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 (75664 , 400032 , 414710 , 432771 , 438049 , 441448 , 449844 , 454737 , 455947 , 456738 , 460211 , 473703 , 479191 , 486007 , 488476 , 488637 , 496586 , 498880 , 500538 , 504946 , 508076 , 510004 , 513839 , 516794 , 534193 , 555318 , 557841 , 558342 , 558615 , 560411 , 563626 , 588039 , 595015 , 599865 , 599927 , 602056 , 605057 , 617357 , 626401 , 630136 , 630267 , 632635 , 640304 , 668533 , 675380 , 715027 , 717366 , 717685 , 719283 , 723522 , 725252 , 726232 , 726240 , 727810 , 728235 , 756345 , 757816 , 761712 , 764622 , 771442 , 778822 , 783205 , 786156 , 788029 , 791207 , 800514 , 810974 , 811952 , 813680 );
Copy