90.76 ms (58.68%)
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
395530
398564
405145
410861
437258
439569
456693
459850
463232
466775
467673
477870
503587
510515
510518
519828
521391
528750
531972
538100
541150
549493
555803
559008
565004
565581
565631
566781
584765
585145
588991
591198
598483
599368
599742
602578
602707
603055
606757
606759
653101
663297
670557
683078
701253
701580
713442
744860
757971
759464
774116
774143
792936
794272
795368
803758
807365
807409
808956
815581
817725
817802
820550
820940
]
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 (395530 , 398564 , 405145 , 410861 , 437258 , 439569 , 456693 , 459850 , 463232 , 466775 , 467673 , 477870 , 503587 , 510515 , 510518 , 519828 , 521391 , 528750 , 531972 , 538100 , 541150 , 549493 , 555803 , 559008 , 565004 , 565581 , 565631 , 566781 , 584765 , 585145 , 588991 , 591198 , 598483 , 599368 , 599742 , 602578 , 602707 , 603055 , 606757 , 606759 , 653101 , 663297 , 670557 , 683078 , 701253 , 701580 , 713442 , 744860 , 757971 , 759464 , 774116 , 774143 , 792936 , 794272 , 795368 , 803758 , 807365 , 807409 , 808956 , 815581 , 817725 , 817802 , 820550 , 820940 );
Copy
9.95 ms (6.43%)
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
510515
713442
794272
538100
565004
466775
598483
456693
663297
774116
807365
531972
395530
820940
774143
817802
795368
807409
820550
683078
670557
459850
803758
398564
817725
815581
519828
701580
606757
602707
744860
467673
463232
528750
559008
439569
585145
599742
757971
701253
792936
808956
477870
437258
584765
541150
555803
759464
410861
521391
549493
602578
565631
606759
603055
503587
510518
565581
653101
405145
566781
591198
599368
588991
]
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 (510515 , 713442 , 794272 , 538100 , 565004 , 466775 , 598483 , 456693 , 663297 , 774116 , 807365 , 531972 , 395530 , 820940 , 774143 , 817802 , 795368 , 807409 , 820550 , 683078 , 670557 , 459850 , 803758 , 398564 , 817725 , 815581 , 519828 , 701580 , 606757 , 602707 , 744860 , 467673 , 463232 , 528750 , 559008 , 439569 , 585145 , 599742 , 757971 , 701253 , 792936 , 808956 , 477870 , 437258 , 584765 , 541150 , 555803 , 759464 , 410861 , 521391 , 549493 , 602578 , 565631 , 606759 , 603055 , 503587 , 510518 , 565581 , 653101 , 405145 , 566781 , 591198 , 599368 , 588991 );
Copy
2.38 ms (1.54%)
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
395530
398564
405145
410861
437258
439569
456693
459850
463232
466775
467673
477870
503587
510515
510518
519828
521391
528750
531972
538100
541150
549493
555803
559008
565004
565581
565631
566781
584765
585145
588991
591198
598483
599368
599742
602578
602707
603055
606757
606759
653101
663297
670557
683078
701253
701580
713442
744860
757971
759464
774116
774143
792936
794272
795368
803758
807365
807409
808956
815581
817725
817802
820550
820940
]
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 (395530 , 398564 , 405145 , 410861 , 437258 , 439569 , 456693 , 459850 , 463232 , 466775 , 467673 , 477870 , 503587 , 510515 , 510518 , 519828 , 521391 , 528750 , 531972 , 538100 , 541150 , 549493 , 555803 , 559008 , 565004 , 565581 , 565631 , 566781 , 584765 , 585145 , 588991 , 591198 , 598483 , 599368 , 599742 , 602578 , 602707 , 603055 , 606757 , 606759 , 653101 , 663297 , 670557 , 683078 , 701253 , 701580 , 713442 , 744860 , 757971 , 759464 , 774116 , 774143 , 792936 , 794272 , 795368 , 803758 , 807365 , 807409 , 808956 , 815581 , 817725 , 817802 , 820550 , 820940 );
Copy