92.60 ms (74.55%)
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
476972
477560
485320
487804
500931
503485
505430
505932
506118
514094
517455
519126
519650
524274
524862
525203
526327
536154
539008
541101
546017
546419
549992
550911
551860
554516
554625
555698
560412
561070
564679
575924
576386
577679
579661
580958
585250
585684
589773
594832
597090
598124
603704
604746
607227
611813
612092
613599
614417
617436
624013
630472
635621
647212
654838
655050
655082
655967
665253
668005
670251
708311
714434
749633
753511
756914
795330
]
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 (476972 , 477560 , 485320 , 487804 , 500931 , 503485 , 505430 , 505932 , 506118 , 514094 , 517455 , 519126 , 519650 , 524274 , 524862 , 525203 , 526327 , 536154 , 539008 , 541101 , 546017 , 546419 , 549992 , 550911 , 551860 , 554516 , 554625 , 555698 , 560412 , 561070 , 564679 , 575924 , 576386 , 577679 , 579661 , 580958 , 585250 , 585684 , 589773 , 594832 , 597090 , 598124 , 603704 , 604746 , 607227 , 611813 , 612092 , 613599 , 614417 , 617436 , 624013 , 630472 , 635621 , 647212 , 654838 , 655050 , 655082 , 655967 , 665253 , 668005 , 670251 , 708311 , 714434 , 749633 , 753511 , 756914 , 795330 );
Copy
11.45 ms (9.22%)
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
753511
487804
477560
795330
708311
589773
554625
519126
564679
655967
541101
550911
668005
714434
756914
575924
576386
597090
665253
594832
549992
655050
647212
505430
670251
655082
554516
654838
749633
598124
585684
614417
635621
539008
526327
503485
514094
551860
524862
579661
577679
664464
624013
617436
585250
611813
476972
505932
506118
555698
612092
630472
546419
560412
524274
536154
603704
604746
519650
546017
561070
613599
580958
525203
485320
517455
500931
607227
]
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 (753511 , 487804 , 477560 , 795330 , 708311 , 589773 , 554625 , 519126 , 564679 , 655967 , 541101 , 550911 , 668005 , 714434 , 756914 , 575924 , 576386 , 597090 , 665253 , 594832 , 549992 , 655050 , 647212 , 505430 , 670251 , 655082 , 554516 , 654838 , 749633 , 598124 , 585684 , 614417 , 635621 , 539008 , 526327 , 503485 , 514094 , 551860 , 524862 , 579661 , 577679 , 664464 , 624013 , 617436 , 585250 , 611813 , 476972 , 505932 , 506118 , 555698 , 612092 , 630472 , 546419 , 560412 , 524274 , 536154 , 603704 , 604746 , 519650 , 546017 , 561070 , 613599 , 580958 , 525203 , 485320 , 517455 , 500931 , 607227 );
Copy
2.74 ms (2.20%)
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
476972
477560
485320
487804
500931
503485
505430
505932
506118
514094
517455
519126
519650
524274
524862
525203
526327
536154
539008
541101
546017
546419
549992
550911
551860
554516
554625
555698
560412
561070
564679
575924
576386
577679
579661
580958
585250
585684
589773
594832
597090
598124
603704
604746
607227
611813
612092
613599
614417
617436
624013
630472
635621
647212
654838
655050
655082
655967
665253
668005
670251
708311
714434
749633
753511
756914
795330
]
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 (476972 , 477560 , 485320 , 487804 , 500931 , 503485 , 505430 , 505932 , 506118 , 514094 , 517455 , 519126 , 519650 , 524274 , 524862 , 525203 , 526327 , 536154 , 539008 , 541101 , 546017 , 546419 , 549992 , 550911 , 551860 , 554516 , 554625 , 555698 , 560412 , 561070 , 564679 , 575924 , 576386 , 577679 , 579661 , 580958 , 585250 , 585684 , 589773 , 594832 , 597090 , 598124 , 603704 , 604746 , 607227 , 611813 , 612092 , 613599 , 614417 , 617436 , 624013 , 630472 , 635621 , 647212 , 654838 , 655050 , 655082 , 655967 , 665253 , 668005 , 670251 , 708311 , 714434 , 749633 , 753511 , 756914 , 795330 );
Copy