105.72 ms (81.99%)
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
397354
403539
418860
419136
425643
442319
442690
442737
444908
448069
454875
456542
456547
459879
463901
464084
465200
473074
473102
483559
505815
511325
517913
526522
526785
529166
530502
530519
530528
531407
531437
531447
531449
538263
540483
556507
577390
588091
591596
647669
650800
673963
711893
712220
714514
747016
750848
752975
757659
758140
774314
776742
780516
789969
797638
798205
800876
801524
805742
805876
814924
816938
821268
821377
821620
823242
824414
]
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 (397354 , 403539 , 418860 , 419136 , 425643 , 442319 , 442690 , 442737 , 444908 , 448069 , 454875 , 456542 , 456547 , 459879 , 463901 , 464084 , 465200 , 473074 , 473102 , 483559 , 505815 , 511325 , 517913 , 526522 , 526785 , 529166 , 530502 , 530519 , 530528 , 531407 , 531437 , 531447 , 531449 , 538263 , 540483 , 556507 , 577390 , 588091 , 591596 , 647669 , 650800 , 673963 , 711893 , 712220 , 714514 , 747016 , 750848 , 752975 , 757659 , 758140 , 774314 , 776742 , 780516 , 789969 , 797638 , 798205 , 800876 , 801524 , 805742 , 805876 , 814924 , 816938 , 821268 , 821377 , 821620 , 823242 , 824414 );
Copy
10.86 ms (8.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
556507
588091
789969
776742
797638
757659
752975
798205
805742
747016
774314
801524
531449
758140
750848
712220
473074
673963
647669
714514
591596
805876
463901
526522
538263
483559
814924
530519
530502
531447
526785
529166
530528
650800
459879
517913
444908
577390
711893
464084
531437
780516
540483
821268
821377
456547
824414
816938
403539
465200
821620
456542
397354
454875
448069
800876
442737
442319
505815
425643
442690
418860
511325
419136
823242
531407
473102
]
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 (556507 , 588091 , 789969 , 776742 , 797638 , 757659 , 752975 , 798205 , 805742 , 747016 , 774314 , 801524 , 531449 , 758140 , 750848 , 712220 , 473074 , 673963 , 647669 , 714514 , 591596 , 805876 , 463901 , 526522 , 538263 , 483559 , 814924 , 530519 , 530502 , 531447 , 526785 , 529166 , 530528 , 650800 , 459879 , 517913 , 444908 , 577390 , 711893 , 464084 , 531437 , 780516 , 540483 , 821268 , 821377 , 456547 , 824414 , 816938 , 403539 , 465200 , 821620 , 456542 , 397354 , 454875 , 448069 , 800876 , 442737 , 442319 , 505815 , 425643 , 442690 , 418860 , 511325 , 419136 , 823242 , 531407 , 473102 );
Copy
2.75 ms (2.14%)
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
397354
403539
418860
419136
425643
442319
442690
442737
444908
448069
454875
456542
456547
459879
463901
464084
465200
473074
473102
483559
505815
511325
517913
526522
526785
529166
530502
530519
530528
531407
531437
531447
531449
538263
540483
556507
577390
588091
591596
647669
650800
673963
711893
712220
714514
747016
750848
752975
757659
758140
774314
776742
780516
789969
797638
798205
800876
801524
805742
805876
814924
816938
821268
821377
821620
823242
824414
]
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 (397354 , 403539 , 418860 , 419136 , 425643 , 442319 , 442690 , 442737 , 444908 , 448069 , 454875 , 456542 , 456547 , 459879 , 463901 , 464084 , 465200 , 473074 , 473102 , 483559 , 505815 , 511325 , 517913 , 526522 , 526785 , 529166 , 530502 , 530519 , 530528 , 531407 , 531437 , 531447 , 531449 , 538263 , 540483 , 556507 , 577390 , 588091 , 591596 , 647669 , 650800 , 673963 , 711893 , 712220 , 714514 , 747016 , 750848 , 752975 , 757659 , 758140 , 774314 , 776742 , 780516 , 789969 , 797638 , 798205 , 800876 , 801524 , 805742 , 805876 , 814924 , 816938 , 821268 , 821377 , 821620 , 823242 , 824414 );
Copy