7
8.60 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
768151
756978
743132
740864
737179
724194
723988
711960
698235
695351
690588
683435
677074
668798
668797
668666
665993
653852
648575
648514
642561
641480
641461
641458
630751
627815
626838
623306
622534
605557
605254
604091
600767
599973
597720
593197
580613
573134
571127
570756
559141
559140
558357
554787
534983
528698
527818
527250
520189
516968
513855
513185
512057
512029
497971
496520
495043
486791
484521
484022
483571
474733
468380
454825
454027
453954
453491
438152
426101
417045
411971
411947
411477
408563
152882
]
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 (768151 , 756978 , 743132 , 740864 , 737179 , 724194 , 723988 , 711960 , 698235 , 695351 , 690588 , 683435 , 677074 , 668798 , 668797 , 668666 , 665993 , 653852 , 648575 , 648514 , 642561 , 641480 , 641461 , 641458 , 630751 , 627815 , 626838 , 623306 , 622534 , 605557 , 605254 , 604091 , 600767 , 599973 , 597720 , 593197 , 580613 , 573134 , 571127 , 570756 , 559141 , 559140 , 558357 , 554787 , 534983 , 528698 , 527818 , 527250 , 520189 , 516968 , 513855 , 513185 , 512057 , 512029 , 497971 , 496520 , 495043 , 486791 , 484521 , 484022 , 483571 , 474733 , 468380 , 454825 , 454027 , 453954 , 453491 , 438152 , 426101 , 417045 , 411971 , 411947 , 411477 , 408563 , 152882 );
Copy
8
2.37 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
152882
408563
411477
411947
411971
417045
426101
438152
453491
453954
454027
454825
468380
474733
483571
484022
484521
486791
495043
496520
497971
512029
512057
513185
513855
516968
520189
527250
527818
528698
534983
554787
558357
559140
559141
570756
571127
573134
580613
593197
597720
599973
600767
604091
605254
605557
622534
623306
626838
627815
630751
641458
641461
641480
642561
648514
648575
653852
665993
668666
668797
668798
677074
683435
690588
695351
698235
711960
723988
724194
737179
740864
743132
756978
768151
]
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 (152882 , 408563 , 411477 , 411947 , 411971 , 417045 , 426101 , 438152 , 453491 , 453954 , 454027 , 454825 , 468380 , 474733 , 483571 , 484022 , 484521 , 486791 , 495043 , 496520 , 497971 , 512029 , 512057 , 513185 , 513855 , 516968 , 520189 , 527250 , 527818 , 528698 , 534983 , 554787 , 558357 , 559140 , 559141 , 570756 , 571127 , 573134 , 580613 , 593197 , 597720 , 599973 , 600767 , 604091 , 605254 , 605557 , 622534 , 623306 , 626838 , 627815 , 630751 , 641458 , 641461 , 641480 , 642561 , 648514 , 648575 , 653852 , 665993 , 668666 , 668797 , 668798 , 677074 , 683435 , 690588 , 695351 , 698235 , 711960 , 723988 , 724194 , 737179 , 740864 , 743132 , 756978 , 768151 );
Copy
9
100.76 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
152882
408563
411477
411947
411971
417045
426101
438152
453491
453954
454027
454825
468380
474733
483571
484022
484521
486791
495043
496520
497971
512029
512057
513185
513855
516968
520189
527250
527818
528698
534983
554787
558357
559140
559141
570756
571127
573134
580613
593197
597720
599973
600767
604091
605254
605557
622534
623306
626838
627815
630751
641458
641461
641480
642561
648514
648575
653852
665993
668666
668797
668798
677074
683435
690588
695351
698235
711960
723988
724194
737179
740864
743132
756978
768151
]
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 (152882 , 408563 , 411477 , 411947 , 411971 , 417045 , 426101 , 438152 , 453491 , 453954 , 454027 , 454825 , 468380 , 474733 , 483571 , 484022 , 484521 , 486791 , 495043 , 496520 , 497971 , 512029 , 512057 , 513185 , 513855 , 516968 , 520189 , 527250 , 527818 , 528698 , 534983 , 554787 , 558357 , 559140 , 559141 , 570756 , 571127 , 573134 , 580613 , 593197 , 597720 , 599973 , 600767 , 604091 , 605254 , 605557 , 622534 , 623306 , 626838 , 627815 , 630751 , 641458 , 641461 , 641480 , 642561 , 648514 , 648575 , 653852 , 665993 , 668666 , 668797 , 668798 , 677074 , 683435 , 690588 , 695351 , 698235 , 711960 , 723988 , 724194 , 737179 , 740864 , 743132 , 756978 , 768151 );
Copy