94.47 ms (74.38%)
1
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
387276
423342
436632
445743
451854
460384
460573
468217
469162
469176
471672
474383
474805
476475
478797
479479
498832
502752
504718
518007
525439
528846
567272
579451
583021
589904
589927
589945
589958
596402
596440
596478
602677
618741
624897
628346
629143
648931
661062
671195
681388
696250
705784
709006
720791
743239
749430
753024
753747
756273
764213
767419
767758
773670
777676
780249
782070
783952
785556
790634
791598
792441
795027
807262
816691
816703
818690
819891
824753
827543
]
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 (387276 , 423342 , 436632 , 445743 , 451854 , 460384 , 460573 , 468217 , 469162 , 469176 , 471672 , 474383 , 474805 , 476475 , 478797 , 479479 , 498832 , 502752 , 504718 , 518007 , 525439 , 528846 , 567272 , 579451 , 583021 , 589904 , 589927 , 589945 , 589958 , 596402 , 596440 , 596478 , 602677 , 618741 , 624897 , 628346 , 629143 , 648931 , 661062 , 671195 , 681388 , 696250 , 705784 , 709006 , 720791 , 743239 , 749430 , 753024 , 753747 , 756273 , 764213 , 767419 , 767758 , 773670 , 777676 , 780249 , 782070 , 783952 , 785556 , 790634 , 791598 , 792441 , 795027 , 807262 , 816691 , 816703 , 818690 , 819891 , 824753 , 827543 );
Copy
11.31 ms (8.90%)
1
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
790634
749430
445743
795027
648931
753747
602677
589904
767419
816703
696250
596402
764213
782070
816691
583021
629143
753024
824753
785556
743239
827543
705784
819891
818690
720791
681388
780249
791598
783952
436632
589927
387276
460573
671195
661062
589945
589958
792441
767758
502752
469162
709006
476475
468217
469176
479479
474805
579451
596440
628346
777676
807262
756273
460384
423342
471672
498832
596478
773670
478797
518007
525439
567272
624897
618741
451854
474383
528846
504718
]
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 (790634 , 749430 , 445743 , 795027 , 648931 , 753747 , 602677 , 589904 , 767419 , 816703 , 696250 , 596402 , 764213 , 782070 , 816691 , 583021 , 629143 , 753024 , 824753 , 785556 , 743239 , 827543 , 705784 , 819891 , 818690 , 720791 , 681388 , 780249 , 791598 , 783952 , 436632 , 589927 , 387276 , 460573 , 671195 , 661062 , 589945 , 589958 , 792441 , 767758 , 502752 , 469162 , 709006 , 476475 , 468217 , 469176 , 479479 , 474805 , 579451 , 596440 , 628346 , 777676 , 807262 , 756273 , 460384 , 423342 , 471672 , 498832 , 596478 , 773670 , 478797 , 518007 , 525439 , 567272 , 624897 , 618741 , 451854 , 474383 , 528846 , 504718 );
Copy
2.59 ms (2.04%)
1
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
387276
423342
436632
445743
451854
460384
460573
468217
469162
469176
471672
474383
474805
476475
478797
479479
498832
502752
504718
518007
525439
528846
567272
579451
583021
589904
589927
589945
589958
596402
596440
596478
602677
618741
624897
628346
629143
648931
661062
671195
681388
696250
705784
709006
720791
743239
749430
753024
753747
756273
764213
767419
767758
773670
777676
780249
782070
783952
785556
790634
791598
792441
795027
807262
816691
816703
818690
819891
824753
827543
]
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 (387276 , 423342 , 436632 , 445743 , 451854 , 460384 , 460573 , 468217 , 469162 , 469176 , 471672 , 474383 , 474805 , 476475 , 478797 , 479479 , 498832 , 502752 , 504718 , 518007 , 525439 , 528846 , 567272 , 579451 , 583021 , 589904 , 589927 , 589945 , 589958 , 596402 , 596440 , 596478 , 602677 , 618741 , 624897 , 628346 , 629143 , 648931 , 661062 , 671195 , 681388 , 696250 , 705784 , 709006 , 720791 , 743239 , 749430 , 753024 , 753747 , 756273 , 764213 , 767419 , 767758 , 773670 , 777676 , 780249 , 782070 , 783952 , 785556 , 790634 , 791598 , 792441 , 795027 , 807262 , 816691 , 816703 , 818690 , 819891 , 824753 , 827543 );
Copy