81.27 ms (71.57%)
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
443256
444902
459358
464624
469988
484418
499261
504085
507296
507514
511466
512870
513096
514752
517788
518096
520941
522348
522776
524628
526895
530808
533370
533982
538077
538963
543865
545509
546808
548258
549122
552273
558951
561740
563990
569778
585417
585984
586102
591729
591909
605443
634231
639938
644175
648817
652121
674077
677357
682654
689005
728489
744520
749282
776512
786619
790475
799862
809127
809310
809647
809894
]
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 (443256 , 444902 , 459358 , 464624 , 469988 , 484418 , 499261 , 504085 , 507296 , 507514 , 511466 , 512870 , 513096 , 514752 , 517788 , 518096 , 520941 , 522348 , 522776 , 524628 , 526895 , 530808 , 533370 , 533982 , 538077 , 538963 , 543865 , 545509 , 546808 , 548258 , 549122 , 552273 , 558951 , 561740 , 563990 , 569778 , 585417 , 585984 , 586102 , 591729 , 591909 , 605443 , 634231 , 639938 , 644175 , 648817 , 652121 , 674077 , 677357 , 682654 , 689005 , 728489 , 744520 , 749282 , 776512 , 786619 , 790475 , 799862 , 809127 , 809310 , 809647 , 809894 );
Copy
10.38 ms (9.14%)
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
639938
809647
776512
512870
549122
464624
786619
507514
809127
514752
563990
682654
799862
538077
728489
809310
634231
499261
744520
469988
561740
644175
585417
790475
749282
511466
443256
652121
586102
689005
809894
585984
591909
605443
513096
522348
522776
677357
444902
520941
545509
518096
543865
569778
591729
459358
484418
507296
548258
526895
517788
533370
558951
546808
648817
552273
674077
504085
524628
530808
533982
538963
]
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 (639938 , 809647 , 776512 , 512870 , 549122 , 464624 , 786619 , 507514 , 809127 , 514752 , 563990 , 682654 , 799862 , 538077 , 728489 , 809310 , 634231 , 499261 , 744520 , 469988 , 561740 , 644175 , 585417 , 790475 , 749282 , 511466 , 443256 , 652121 , 586102 , 689005 , 809894 , 585984 , 591909 , 605443 , 513096 , 522348 , 522776 , 677357 , 444902 , 520941 , 545509 , 518096 , 543865 , 569778 , 591729 , 459358 , 484418 , 507296 , 548258 , 526895 , 517788 , 533370 , 558951 , 546808 , 648817 , 552273 , 674077 , 504085 , 524628 , 530808 , 533982 , 538963 );
Copy
2.39 ms (2.11%)
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
443256
444902
459358
464624
469988
484418
499261
504085
507296
507514
511466
512870
513096
514752
517788
518096
520941
522348
522776
524628
526895
530808
533370
533982
538077
538963
543865
545509
546808
548258
549122
552273
558951
561740
563990
569778
585417
585984
586102
591729
591909
605443
634231
639938
644175
648817
652121
674077
677357
682654
689005
728489
744520
749282
776512
786619
790475
799862
809127
809310
809647
809894
]
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 (443256 , 444902 , 459358 , 464624 , 469988 , 484418 , 499261 , 504085 , 507296 , 507514 , 511466 , 512870 , 513096 , 514752 , 517788 , 518096 , 520941 , 522348 , 522776 , 524628 , 526895 , 530808 , 533370 , 533982 , 538077 , 538963 , 543865 , 545509 , 546808 , 548258 , 549122 , 552273 , 558951 , 561740 , 563990 , 569778 , 585417 , 585984 , 586102 , 591729 , 591909 , 605443 , 634231 , 639938 , 644175 , 648817 , 652121 , 674077 , 677357 , 682654 , 689005 , 728489 , 744520 , 749282 , 776512 , 786619 , 790475 , 799862 , 809127 , 809310 , 809647 , 809894 );
Copy