3
9.03 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
697301
557921
741980
555806
575586
572682
823843
661523
825151
622296
819826
744555
662424
550425
826847
819118
563977
683592
538474
543074
687608
712336
611309
794201
718636
676518
637898
543242
569365
735988
598814
739782
546431
556796
430244
526563
538472
648167
729034
738145
734790
533156
682193
732201
496454
543457
607798
412733
452832
467915
543266
583542
545023
685940
597899
802275
460646
522979
685982
623143
600381
635336
464381
401214
512147
446856
512790
563854
581701
685001
688045
566693
565067
]
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 (697301 , 557921 , 741980 , 555806 , 575586 , 572682 , 823843 , 661523 , 825151 , 622296 , 819826 , 744555 , 662424 , 550425 , 826847 , 819118 , 563977 , 683592 , 538474 , 543074 , 687608 , 712336 , 611309 , 794201 , 718636 , 676518 , 637898 , 543242 , 569365 , 735988 , 598814 , 739782 , 546431 , 556796 , 430244 , 526563 , 538472 , 648167 , 729034 , 738145 , 734790 , 533156 , 682193 , 732201 , 496454 , 543457 , 607798 , 412733 , 452832 , 467915 , 543266 , 583542 , 545023 , 685940 , 597899 , 802275 , 460646 , 522979 , 685982 , 623143 , 600381 , 635336 , 464381 , 401214 , 512147 , 446856 , 512790 , 563854 , 581701 , 685001 , 688045 , 566693 , 565067 );
Copy
4
2.89 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
401214
412733
430244
446856
452832
460646
464381
467915
496454
512147
512790
522979
526563
533156
538472
538474
543074
543242
543266
543457
545023
546431
550425
555806
556796
557921
563854
563977
565067
566693
569365
572682
575586
581701
583542
597899
598814
600381
607798
611309
622296
623143
635336
637898
648167
661523
662424
676518
682193
683592
685001
685940
685982
687608
688045
697301
712336
718636
729034
732201
734790
735988
738145
739782
741980
744555
794201
802275
819118
819826
823843
825151
826847
]
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 (401214 , 412733 , 430244 , 446856 , 452832 , 460646 , 464381 , 467915 , 496454 , 512147 , 512790 , 522979 , 526563 , 533156 , 538472 , 538474 , 543074 , 543242 , 543266 , 543457 , 545023 , 546431 , 550425 , 555806 , 556796 , 557921 , 563854 , 563977 , 565067 , 566693 , 569365 , 572682 , 575586 , 581701 , 583542 , 597899 , 598814 , 600381 , 607798 , 611309 , 622296 , 623143 , 635336 , 637898 , 648167 , 661523 , 662424 , 676518 , 682193 , 683592 , 685001 , 685940 , 685982 , 687608 , 688045 , 697301 , 712336 , 718636 , 729034 , 732201 , 734790 , 735988 , 738145 , 739782 , 741980 , 744555 , 794201 , 802275 , 819118 , 819826 , 823843 , 825151 , 826847 );
Copy
5
152.85 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
401214
412733
430244
446856
452832
460646
464381
467915
496454
512147
512790
522979
526563
533156
538472
538474
543074
543242
543266
543457
545023
546431
550425
555806
556796
557921
563854
563977
565067
566693
569365
572682
575586
581701
583542
597899
598814
600381
607798
611309
622296
623143
635336
637898
648167
661523
662424
676518
682193
683592
685001
685940
685982
687608
688045
697301
712336
718636
729034
732201
734790
735988
738145
739782
741980
744555
794201
802275
819118
819826
823843
825151
826847
]
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 (401214 , 412733 , 430244 , 446856 , 452832 , 460646 , 464381 , 467915 , 496454 , 512147 , 512790 , 522979 , 526563 , 533156 , 538472 , 538474 , 543074 , 543242 , 543266 , 543457 , 545023 , 546431 , 550425 , 555806 , 556796 , 557921 , 563854 , 563977 , 565067 , 566693 , 569365 , 572682 , 575586 , 581701 , 583542 , 597899 , 598814 , 600381 , 607798 , 611309 , 622296 , 623143 , 635336 , 637898 , 648167 , 661523 , 662424 , 676518 , 682193 , 683592 , 685001 , 685940 , 685982 , 687608 , 688045 , 697301 , 712336 , 718636 , 729034 , 732201 , 734790 , 735988 , 738145 , 739782 , 741980 , 744555 , 794201 , 802275 , 819118 , 819826 , 823843 , 825151 , 826847 );
Copy