102.84 ms (75.20%)
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
401859
419585
420050
422982
423010
443301
446266
459819
473754
473756
483790
483800
505296
510622
522123
529849
529854
529855
530017
530663
530709
532253
532544
536681
537201
537206
539210
539938
540310
540601
540608
542029
563656
566789
583667
596555
596773
596860
597263
597785
603082
612085
612233
637938
643738
649640
651620
665908
671147
687452
718309
729156
735614
738757
738770
740831
748643
748670
748676
755832
762718
785708
789887
805347
810040
812837
812841
817679
]
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 (401859 , 419585 , 420050 , 422982 , 423010 , 443301 , 446266 , 459819 , 473754 , 473756 , 483790 , 483800 , 505296 , 510622 , 522123 , 529849 , 529854 , 529855 , 530017 , 530663 , 530709 , 532253 , 532544 , 536681 , 537201 , 537206 , 539210 , 539938 , 540310 , 540601 , 540608 , 542029 , 563656 , 566789 , 583667 , 596555 , 596773 , 596860 , 597263 , 597785 , 603082 , 612085 , 612233 , 637938 , 643738 , 649640 , 651620 , 665908 , 671147 , 687452 , 718309 , 729156 , 735614 , 738757 , 738770 , 740831 , 748643 , 748670 , 748676 , 755832 , 762718 , 785708 , 789887 , 805347 , 810040 , 812837 , 812841 , 817679 );
Copy
10.41 ms (7.61%)
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
738770
401859
748670
665908
540310
612085
597785
596860
596773
755832
740831
762718
603082
473756
637938
583667
542029
805347
810040
718309
748676
459819
651620
597263
532253
505296
510622
785708
643738
530709
789887
735614
537201
529854
530663
539938
540608
419585
529855
529849
540601
530017
473754
748643
649640
420050
671147
536681
522123
539210
443301
812841
446266
422982
423010
729156
738757
817679
483800
532544
612233
687452
483790
812837
566789
563656
537206
596555
]
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 (738770 , 401859 , 748670 , 665908 , 540310 , 612085 , 597785 , 596860 , 596773 , 755832 , 740831 , 762718 , 603082 , 473756 , 637938 , 583667 , 542029 , 805347 , 810040 , 718309 , 748676 , 459819 , 651620 , 597263 , 532253 , 505296 , 510622 , 785708 , 643738 , 530709 , 789887 , 735614 , 537201 , 529854 , 530663 , 539938 , 540608 , 419585 , 529855 , 529849 , 540601 , 530017 , 473754 , 748643 , 649640 , 420050 , 671147 , 536681 , 522123 , 539210 , 443301 , 812841 , 446266 , 422982 , 423010 , 729156 , 738757 , 817679 , 483800 , 532544 , 612233 , 687452 , 483790 , 812837 , 566789 , 563656 , 537206 , 596555 );
Copy
2.99 ms (2.19%)
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
401859
419585
420050
422982
423010
443301
446266
459819
473754
473756
483790
483800
505296
510622
522123
529849
529854
529855
530017
530663
530709
532253
532544
536681
537201
537206
539210
539938
540310
540601
540608
542029
563656
566789
583667
596555
596773
596860
597263
597785
603082
612085
612233
637938
643738
649640
651620
665908
671147
687452
718309
729156
735614
738757
738770
740831
748643
748670
748676
755832
762718
785708
789887
805347
810040
812837
812841
817679
]
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 (401859 , 419585 , 420050 , 422982 , 423010 , 443301 , 446266 , 459819 , 473754 , 473756 , 483790 , 483800 , 505296 , 510622 , 522123 , 529849 , 529854 , 529855 , 530017 , 530663 , 530709 , 532253 , 532544 , 536681 , 537201 , 537206 , 539210 , 539938 , 540310 , 540601 , 540608 , 542029 , 563656 , 566789 , 583667 , 596555 , 596773 , 596860 , 597263 , 597785 , 603082 , 612085 , 612233 , 637938 , 643738 , 649640 , 651620 , 665908 , 671147 , 687452 , 718309 , 729156 , 735614 , 738757 , 738770 , 740831 , 748643 , 748670 , 748676 , 755832 , 762718 , 785708 , 789887 , 805347 , 810040 , 812837 , 812841 , 817679 );
Copy