3
9.74 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
630367
725510
603601
750500
758630
809053
678776
665092
783229
745200
185714
446479
480534
723652
573256
589457
745183
441973
527887
476439
429488
535830
619729
395635
506620
543507
614067
624174
726530
726542
90485
516831
610560
607604
90684
508782
526025
387258
564212
575708
565937
586499
492595
410088
532726
549583
564719
548545
592170
614041
520313
617175
494695
620714
543434
575194
626892
543842
639722
508150
586484
]
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 (630367 , 725510 , 603601 , 750500 , 758630 , 809053 , 678776 , 665092 , 783229 , 745200 , 185714 , 446479 , 480534 , 723652 , 573256 , 589457 , 745183 , 441973 , 527887 , 476439 , 429488 , 535830 , 619729 , 395635 , 506620 , 543507 , 614067 , 624174 , 726530 , 726542 , 90485 , 516831 , 610560 , 607604 , 90684 , 508782 , 526025 , 387258 , 564212 , 575708 , 565937 , 586499 , 492595 , 410088 , 532726 , 549583 , 564719 , 548545 , 592170 , 614041 , 520313 , 617175 , 494695 , 620714 , 543434 , 575194 , 626892 , 543842 , 639722 , 508150 , 586484 );
Copy
4
206.80 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
90485
90684
185714
387258
395635
410088
429488
441973
446479
476439
480534
492595
494695
506620
508150
508782
516831
520313
526025
527887
532726
535830
543434
543507
543842
548545
549583
564212
564719
565937
573256
575194
575708
586484
586499
589457
592170
603601
607604
610560
614041
614067
617175
619729
620714
624174
626892
630367
639722
665092
678776
723652
725510
726530
726542
745183
745200
750500
758630
783229
809053
]
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 (90485 , 90684 , 185714 , 387258 , 395635 , 410088 , 429488 , 441973 , 446479 , 476439 , 480534 , 492595 , 494695 , 506620 , 508150 , 508782 , 516831 , 520313 , 526025 , 527887 , 532726 , 535830 , 543434 , 543507 , 543842 , 548545 , 549583 , 564212 , 564719 , 565937 , 573256 , 575194 , 575708 , 586484 , 586499 , 589457 , 592170 , 603601 , 607604 , 610560 , 614041 , 614067 , 617175 , 619729 , 620714 , 624174 , 626892 , 630367 , 639722 , 665092 , 678776 , 723652 , 725510 , 726530 , 726542 , 745183 , 745200 , 750500 , 758630 , 783229 , 809053 );
Copy
5
79.61 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
90485
90684
185714
387258
395635
410088
429488
441973
446479
476439
480534
492595
494695
506620
508150
508782
516831
520313
526025
527887
532726
535830
543434
543507
543842
548545
549583
564212
564719
565937
573256
575194
575708
586484
586499
589457
592170
603601
607604
610560
614041
614067
617175
619729
620714
624174
626892
630367
639722
665092
678776
723652
725510
726530
726542
745183
745200
750500
758630
783229
809053
]
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 (90485 , 90684 , 185714 , 387258 , 395635 , 410088 , 429488 , 441973 , 446479 , 476439 , 480534 , 492595 , 494695 , 506620 , 508150 , 508782 , 516831 , 520313 , 526025 , 527887 , 532726 , 535830 , 543434 , 543507 , 543842 , 548545 , 549583 , 564212 , 564719 , 565937 , 573256 , 575194 , 575708 , 586484 , 586499 , 589457 , 592170 , 603601 , 607604 , 610560 , 614041 , 614067 , 617175 , 619729 , 620714 , 624174 , 626892 , 630367 , 639722 , 665092 , 678776 , 723652 , 725510 , 726530 , 726542 , 745183 , 745200 , 750500 , 758630 , 783229 , 809053 );
Copy