86.04 ms (24.81%)
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
413304
423485
423488
423767
424739
424742
459170
464791
465327
465354
467404
467461
469913
469967
470954
482680
483379
486587
488221
489060
497203
503269
504572
509834
513707
515589
518595
521552
531986
533481
533607
534683
554770
558991
561458
564737
570090
573483
576804
578106
580425
580576
591648
594810
594899
603973
609652
611795
611950
612044
616353
618774
622057
667900
710511
712558
713486
714127
721472
727018
735005
782020
782234
784287
786550
809753
810893
820094
]
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 (413304 , 423485 , 423488 , 423767 , 424739 , 424742 , 459170 , 464791 , 465327 , 465354 , 467404 , 467461 , 469913 , 469967 , 470954 , 482680 , 483379 , 486587 , 488221 , 489060 , 497203 , 503269 , 504572 , 509834 , 513707 , 515589 , 518595 , 521552 , 531986 , 533481 , 533607 , 534683 , 554770 , 558991 , 561458 , 564737 , 570090 , 573483 , 576804 , 578106 , 580425 , 580576 , 591648 , 594810 , 594899 , 603973 , 609652 , 611795 , 611950 , 612044 , 616353 , 618774 , 622057 , 667900 , 710511 , 712558 , 713486 , 714127 , 721472 , 727018 , 735005 , 782020 , 782234 , 784287 , 786550 , 809753 , 810893 , 820094 );
Copy
11.26 ms (3.25%)
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
616353
423488
503269
782234
594810
721472
576804
786550
531986
710511
424739
712558
618774
713486
809753
533607
820094
465327
611795
714127
735005
784287
509834
470954
603973
467404
467461
483379
424742
488221
667900
727018
413304
515589
504572
534683
486587
465354
423485
469967
533481
482680
578106
580576
570090
580425
612044
622057
782020
423767
459170
518595
573483
591648
810893
611950
464791
469913
497203
513707
521552
564737
594899
489060
561458
609652
554770
558991
]
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 (616353 , 423488 , 503269 , 782234 , 594810 , 721472 , 576804 , 786550 , 531986 , 710511 , 424739 , 712558 , 618774 , 713486 , 809753 , 533607 , 820094 , 465327 , 611795 , 714127 , 735005 , 784287 , 509834 , 470954 , 603973 , 467404 , 467461 , 483379 , 424742 , 488221 , 667900 , 727018 , 413304 , 515589 , 504572 , 534683 , 486587 , 465354 , 423485 , 469967 , 533481 , 482680 , 578106 , 580576 , 570090 , 580425 , 612044 , 622057 , 782020 , 423767 , 459170 , 518595 , 573483 , 591648 , 810893 , 611950 , 464791 , 469913 , 497203 , 513707 , 521552 , 564737 , 594899 , 489060 , 561458 , 609652 , 554770 , 558991 );
Copy
2.67 ms (0.77%)
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
413304
423485
423488
423767
424739
424742
459170
464791
465327
465354
467404
467461
469913
469967
470954
482680
483379
486587
488221
489060
497203
503269
504572
509834
513707
515589
518595
521552
531986
533481
533607
534683
554770
558991
561458
564737
570090
573483
576804
578106
580425
580576
591648
594810
594899
603973
609652
611795
611950
612044
616353
618774
622057
667900
710511
712558
713486
714127
721472
727018
735005
782020
782234
784287
786550
809753
810893
820094
]
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 (413304 , 423485 , 423488 , 423767 , 424739 , 424742 , 459170 , 464791 , 465327 , 465354 , 467404 , 467461 , 469913 , 469967 , 470954 , 482680 , 483379 , 486587 , 488221 , 489060 , 497203 , 503269 , 504572 , 509834 , 513707 , 515589 , 518595 , 521552 , 531986 , 533481 , 533607 , 534683 , 554770 , 558991 , 561458 , 564737 , 570090 , 573483 , 576804 , 578106 , 580425 , 580576 , 591648 , 594810 , 594899 , 603973 , 609652 , 611795 , 611950 , 612044 , 616353 , 618774 , 622057 , 667900 , 710511 , 712558 , 713486 , 714127 , 721472 , 727018 , 735005 , 782020 , 782234 , 784287 , 786550 , 809753 , 810893 , 820094 );
Copy