118.57 ms (72.67%)
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
66611
132148
234306
385171
400991
439568
451464
451526
454251
462600
463087
464296
466107
466171
470734
470738
474842
476249
484556
484596
502715
503917
503918
512533
518852
522078
526749
539469
550227
552059
566303
575197
577423
578011
589590
594958
603460
604487
620757
623622
640281
666071
678195
719817
726592
726599
730370
731111
735602
739532
740500
742873
743065
747171
760481
768418
783780
785922
789077
795307
807326
811537
817184
824449
827184
]
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 (66611 , 132148 , 234306 , 385171 , 400991 , 439568 , 451464 , 451526 , 454251 , 462600 , 463087 , 464296 , 466107 , 466171 , 470734 , 470738 , 474842 , 476249 , 484556 , 484596 , 502715 , 503917 , 503918 , 512533 , 518852 , 522078 , 526749 , 539469 , 550227 , 552059 , 566303 , 575197 , 577423 , 578011 , 589590 , 594958 , 603460 , 604487 , 620757 , 623622 , 640281 , 666071 , 678195 , 719817 , 726592 , 726599 , 730370 , 731111 , 735602 , 739532 , 740500 , 742873 , 743065 , 747171 , 760481 , 768418 , 783780 , 785922 , 789077 , 795307 , 807326 , 811537 , 817184 , 824449 , 827184 );
Copy
12.11 ms (7.42%)
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
824449
678195
789077
640281
666071
768418
604487
719817
783780
735602
747171
817184
760481
603460
731111
470734
730370
827184
740500
811537
726599
795307
466171
566303
66611
742873
234306
503918
503917
550227
132148
474842
552059
785922
470738
539469
726592
464296
451526
807326
518852
385171
522078
454251
439568
476249
462600
502715
400991
743065
526749
484596
589590
577423
578011
739532
484556
512533
466107
620757
623622
451464
463087
575197
594958
]
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 (824449 , 678195 , 789077 , 640281 , 666071 , 768418 , 604487 , 719817 , 783780 , 735602 , 747171 , 817184 , 760481 , 603460 , 731111 , 470734 , 730370 , 827184 , 740500 , 811537 , 726599 , 795307 , 466171 , 566303 , 66611 , 742873 , 234306 , 503918 , 503917 , 550227 , 132148 , 474842 , 552059 , 785922 , 470738 , 539469 , 726592 , 464296 , 451526 , 807326 , 518852 , 385171 , 522078 , 454251 , 439568 , 476249 , 462600 , 502715 , 400991 , 743065 , 526749 , 484596 , 589590 , 577423 , 578011 , 739532 , 484556 , 512533 , 466107 , 620757 , 623622 , 451464 , 463087 , 575197 , 594958 );
Copy
2.67 ms (1.64%)
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
66611
132148
234306
385171
400991
439568
451464
451526
454251
462600
463087
464296
466107
466171
470734
470738
474842
476249
484556
484596
502715
503917
503918
512533
518852
522078
526749
539469
550227
552059
566303
575197
577423
578011
589590
594958
603460
604487
620757
623622
640281
666071
678195
719817
726592
726599
730370
731111
735602
739532
740500
742873
743065
747171
760481
768418
783780
785922
789077
795307
807326
811537
817184
824449
827184
]
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 (66611 , 132148 , 234306 , 385171 , 400991 , 439568 , 451464 , 451526 , 454251 , 462600 , 463087 , 464296 , 466107 , 466171 , 470734 , 470738 , 474842 , 476249 , 484556 , 484596 , 502715 , 503917 , 503918 , 512533 , 518852 , 522078 , 526749 , 539469 , 550227 , 552059 , 566303 , 575197 , 577423 , 578011 , 589590 , 594958 , 603460 , 604487 , 620757 , 623622 , 640281 , 666071 , 678195 , 719817 , 726592 , 726599 , 730370 , 731111 , 735602 , 739532 , 740500 , 742873 , 743065 , 747171 , 760481 , 768418 , 783780 , 785922 , 789077 , 795307 , 807326 , 811537 , 817184 , 824449 , 827184 );
Copy