95.03 ms (67.72%)
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
142579
388746
421250
423329
428009
428116
428128
434601
443945
448722
449353
457373
458614
476678
477072
485996
488897
488937
496794
502315
503194
513737
516590
516655
516661
517612
522140
522381
528682
531603
531608
532443
532480
534823
535084
540513
545785
545802
545828
551137
568190
572681
573212
587418
590879
591689
600030
601101
603164
604478
604601
605521
606482
606993
610011
610620
614720
615605
630916
638550
650983
653052
706859
730216
759691
811924
]
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 (142579 , 388746 , 421250 , 423329 , 428009 , 428116 , 428128 , 434601 , 443945 , 448722 , 449353 , 457373 , 458614 , 476678 , 477072 , 485996 , 488897 , 488937 , 496794 , 502315 , 503194 , 513737 , 516590 , 516655 , 516661 , 517612 , 522140 , 522381 , 528682 , 531603 , 531608 , 532443 , 532480 , 534823 , 535084 , 540513 , 545785 , 545802 , 545828 , 551137 , 568190 , 572681 , 573212 , 587418 , 590879 , 591689 , 600030 , 601101 , 603164 , 604478 , 604601 , 605521 , 606482 , 606993 , 610011 , 610620 , 614720 , 615605 , 630916 , 638550 , 650983 , 653052 , 706859 , 730216 , 759691 , 811924 );
Copy
13.81 ms (9.84%)
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
457373
496794
448722
650983
535084
517612
449353
531603
142579
513737
615605
604601
587418
730216
811924
428009
522140
443945
488897
610620
516590
516655
458614
568190
476678
532443
572681
610011
590879
759691
488937
638550
485996
630916
706859
522381
421250
603164
545802
388746
477072
502315
534823
531608
653052
591689
434601
428128
540513
428116
545785
606993
528682
545828
604478
605521
532480
606482
600030
614720
516661
551137
423329
601101
573212
503194
]
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 (457373 , 496794 , 448722 , 650983 , 535084 , 517612 , 449353 , 531603 , 142579 , 513737 , 615605 , 604601 , 587418 , 730216 , 811924 , 428009 , 522140 , 443945 , 488897 , 610620 , 516590 , 516655 , 458614 , 568190 , 476678 , 532443 , 572681 , 610011 , 590879 , 759691 , 488937 , 638550 , 485996 , 630916 , 706859 , 522381 , 421250 , 603164 , 545802 , 388746 , 477072 , 502315 , 534823 , 531608 , 653052 , 591689 , 434601 , 428128 , 540513 , 428116 , 545785 , 606993 , 528682 , 545828 , 604478 , 605521 , 532480 , 606482 , 600030 , 614720 , 516661 , 551137 , 423329 , 601101 , 573212 , 503194 );
Copy
2.61 ms (1.86%)
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
142579
388746
421250
423329
428009
428116
428128
434601
443945
448722
449353
457373
458614
476678
477072
485996
488897
488937
496794
502315
503194
513737
516590
516655
516661
517612
522140
522381
528682
531603
531608
532443
532480
534823
535084
540513
545785
545802
545828
551137
568190
572681
573212
587418
590879
591689
600030
601101
603164
604478
604601
605521
606482
606993
610011
610620
614720
615605
630916
638550
650983
653052
706859
730216
759691
811924
]
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 (142579 , 388746 , 421250 , 423329 , 428009 , 428116 , 428128 , 434601 , 443945 , 448722 , 449353 , 457373 , 458614 , 476678 , 477072 , 485996 , 488897 , 488937 , 496794 , 502315 , 503194 , 513737 , 516590 , 516655 , 516661 , 517612 , 522140 , 522381 , 528682 , 531603 , 531608 , 532443 , 532480 , 534823 , 535084 , 540513 , 545785 , 545802 , 545828 , 551137 , 568190 , 572681 , 573212 , 587418 , 590879 , 591689 , 600030 , 601101 , 603164 , 604478 , 604601 , 605521 , 606482 , 606993 , 610011 , 610620 , 614720 , 615605 , 630916 , 638550 , 650983 , 653052 , 706859 , 730216 , 759691 , 811924 );
Copy