99.05 ms (64.37%)
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
397211
437121
437178
437592
459151
460539
478995
494298
500530
502541
502549
517395
522328
523903
525602
529300
536871
538065
546824
559367
572219
579379
579853
590546
594553
600811
604991
605587
606759
609566
610661
615908
618591
619292
623171
627253
628600
630150
630915
634474
635822
637247
637613
638555
650605
650992
653156
667344
667490
677878
680675
682520
683517
686521
699678
700478
701472
704194
704314
728460
732975
743013
768586
768790
792383
793234
794357
800901
803463
824123
]
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 (397211 , 437121 , 437178 , 437592 , 459151 , 460539 , 478995 , 494298 , 500530 , 502541 , 502549 , 517395 , 522328 , 523903 , 525602 , 529300 , 536871 , 538065 , 546824 , 559367 , 572219 , 579379 , 579853 , 590546 , 594553 , 600811 , 604991 , 605587 , 606759 , 609566 , 610661 , 615908 , 618591 , 619292 , 623171 , 627253 , 628600 , 630150 , 630915 , 634474 , 635822 , 637247 , 637613 , 638555 , 650605 , 650992 , 653156 , 667344 , 667490 , 677878 , 680675 , 682520 , 683517 , 686521 , 699678 , 700478 , 701472 , 704194 , 704314 , 728460 , 732975 , 743013 , 768586 , 768790 , 792383 , 793234 , 794357 , 800901 , 803463 , 824123 );
Copy
10.38 ms (6.75%)
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
792383
743013
653156
397211
793234
635822
609566
525602
794357
728460
686521
732975
494298
437178
627253
800901
628600
619292
605587
600811
437121
572219
579853
699678
824123
637613
704314
594553
667490
768586
701472
700478
680675
704194
768790
677878
630150
460539
623171
536871
618591
638555
604991
615908
650605
637247
634474
590546
803463
500530
437592
682520
683517
546824
667344
579379
559367
459151
630915
478995
502549
538065
610661
517395
522328
606759
523903
502541
529300
650992
]
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 (792383 , 743013 , 653156 , 397211 , 793234 , 635822 , 609566 , 525602 , 794357 , 728460 , 686521 , 732975 , 494298 , 437178 , 627253 , 800901 , 628600 , 619292 , 605587 , 600811 , 437121 , 572219 , 579853 , 699678 , 824123 , 637613 , 704314 , 594553 , 667490 , 768586 , 701472 , 700478 , 680675 , 704194 , 768790 , 677878 , 630150 , 460539 , 623171 , 536871 , 618591 , 638555 , 604991 , 615908 , 650605 , 637247 , 634474 , 590546 , 803463 , 500530 , 437592 , 682520 , 683517 , 546824 , 667344 , 579379 , 559367 , 459151 , 630915 , 478995 , 502549 , 538065 , 610661 , 517395 , 522328 , 606759 , 523903 , 502541 , 529300 , 650992 );
Copy
3.05 ms (1.98%)
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
397211
437121
437178
437592
459151
460539
478995
494298
500530
502541
502549
517395
522328
523903
525602
529300
536871
538065
546824
559367
572219
579379
579853
590546
594553
600811
604991
605587
606759
609566
610661
615908
618591
619292
623171
627253
628600
630150
630915
634474
635822
637247
637613
638555
650605
650992
653156
667344
667490
677878
680675
682520
683517
686521
699678
700478
701472
704194
704314
728460
732975
743013
768586
768790
792383
793234
794357
800901
803463
824123
]
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 (397211 , 437121 , 437178 , 437592 , 459151 , 460539 , 478995 , 494298 , 500530 , 502541 , 502549 , 517395 , 522328 , 523903 , 525602 , 529300 , 536871 , 538065 , 546824 , 559367 , 572219 , 579379 , 579853 , 590546 , 594553 , 600811 , 604991 , 605587 , 606759 , 609566 , 610661 , 615908 , 618591 , 619292 , 623171 , 627253 , 628600 , 630150 , 630915 , 634474 , 635822 , 637247 , 637613 , 638555 , 650605 , 650992 , 653156 , 667344 , 667490 , 677878 , 680675 , 682520 , 683517 , 686521 , 699678 , 700478 , 701472 , 704194 , 704314 , 728460 , 732975 , 743013 , 768586 , 768790 , 792383 , 793234 , 794357 , 800901 , 803463 , 824123 );
Copy