82.37 ms (56.97%)
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
233135
400881
404386
422201
443695
443709
467414
479469
488867
491753
494433
495393
497793
501474
507895
524640
535734
546725
549127
550224
557991
559217
561486
569483
569993
578074
579271
580288
592481
600281
605909
606768
634275
670102
673960
673988
685909
699554
702061
714169
717545
717852
729251
733819
736784
741780
745028
761597
779012
784014
785384
790019
790635
795514
799071
800197
802201
802235
808615
810663
810899
810926
812401
813789
818473
820417
820747
823230
]
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 (233135 , 400881 , 404386 , 422201 , 443695 , 443709 , 467414 , 479469 , 488867 , 491753 , 494433 , 495393 , 497793 , 501474 , 507895 , 524640 , 535734 , 546725 , 549127 , 550224 , 557991 , 559217 , 561486 , 569483 , 569993 , 578074 , 579271 , 580288 , 592481 , 600281 , 605909 , 606768 , 634275 , 670102 , 673960 , 673988 , 685909 , 699554 , 702061 , 714169 , 717545 , 717852 , 729251 , 733819 , 736784 , 741780 , 745028 , 761597 , 779012 , 784014 , 785384 , 790019 , 790635 , 795514 , 799071 , 800197 , 802201 , 802235 , 808615 , 810663 , 810899 , 810926 , 812401 , 813789 , 818473 , 820417 , 820747 , 823230 );
Copy
12.12 ms (8.38%)
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
404386
685909
400881
799071
524640
761597
233135
550224
741780
557991
443709
443695
561486
802235
802201
535734
818473
714169
823230
549127
634275
808615
812401
733819
813789
569483
606768
820417
717545
605909
800197
422201
790635
820747
569993
670102
578074
784014
736784
785384
507895
559217
579271
580288
592481
810663
745028
479469
810899
810926
779012
494433
546725
699554
790019
795514
729251
467414
488867
497793
717852
600281
702061
501474
673988
491753
673960
495393
]
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 (404386 , 685909 , 400881 , 799071 , 524640 , 761597 , 233135 , 550224 , 741780 , 557991 , 443709 , 443695 , 561486 , 802235 , 802201 , 535734 , 818473 , 714169 , 823230 , 549127 , 634275 , 808615 , 812401 , 733819 , 813789 , 569483 , 606768 , 820417 , 717545 , 605909 , 800197 , 422201 , 790635 , 820747 , 569993 , 670102 , 578074 , 784014 , 736784 , 785384 , 507895 , 559217 , 579271 , 580288 , 592481 , 810663 , 745028 , 479469 , 810899 , 810926 , 779012 , 494433 , 546725 , 699554 , 790019 , 795514 , 729251 , 467414 , 488867 , 497793 , 717852 , 600281 , 702061 , 501474 , 673988 , 491753 , 673960 , 495393 );
Copy
3.32 ms (2.30%)
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
233135
400881
404386
422201
443695
443709
467414
479469
488867
491753
494433
495393
497793
501474
507895
524640
535734
546725
549127
550224
557991
559217
561486
569483
569993
578074
579271
580288
592481
600281
605909
606768
634275
670102
673960
673988
685909
699554
702061
714169
717545
717852
729251
733819
736784
741780
745028
761597
779012
784014
785384
790019
790635
795514
799071
800197
802201
802235
808615
810663
810899
810926
812401
813789
818473
820417
820747
823230
]
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 (233135 , 400881 , 404386 , 422201 , 443695 , 443709 , 467414 , 479469 , 488867 , 491753 , 494433 , 495393 , 497793 , 501474 , 507895 , 524640 , 535734 , 546725 , 549127 , 550224 , 557991 , 559217 , 561486 , 569483 , 569993 , 578074 , 579271 , 580288 , 592481 , 600281 , 605909 , 606768 , 634275 , 670102 , 673960 , 673988 , 685909 , 699554 , 702061 , 714169 , 717545 , 717852 , 729251 , 733819 , 736784 , 741780 , 745028 , 761597 , 779012 , 784014 , 785384 , 790019 , 790635 , 795514 , 799071 , 800197 , 802201 , 802235 , 808615 , 810663 , 810899 , 810926 , 812401 , 813789 , 818473 , 820417 , 820747 , 823230 );
Copy