77.41 ms (24.12%)
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
404693
418440
420513
427971
434774
438013
441454
442524
444851
447948
452643
454625
457132
457821
457884
464804
465247
478973
483210
483553
486610
486871
488454
492528
498623
502779
508072
509099
517405
527009
534604
536903
545245
549739
553031
557569
564541
571086
580807
581213
583866
592402
598899
612699
636403
652213
663769
673833
703582
708551
710524
714515
714925
715106
720174
722934
737441
758780
758865
777631
782427
794090
800565
813122
]
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 (404693 , 418440 , 420513 , 427971 , 434774 , 438013 , 441454 , 442524 , 444851 , 447948 , 452643 , 454625 , 457132 , 457821 , 457884 , 464804 , 465247 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 492528 , 498623 , 502779 , 508072 , 509099 , 517405 , 527009 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 564541 , 571086 , 580807 , 581213 , 583866 , 592402 , 598899 , 612699 , 636403 , 652213 , 663769 , 673833 , 703582 , 708551 , 710524 , 714515 , 714925 , 715106 , 720174 , 722934 , 737441 , 758780 , 758865 , 777631 , 782427 , 794090 , 800565 , 813122 );
Copy
7.65 ms (2.38%)
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
673833
715106
703582
794090
800565
813122
777631
758780
737441
714515
720174
782427
509099
452643
488454
465247
508072
534604
581213
583866
571086
714925
722934
708551
636403
758865
420513
454625
486610
441454
442524
427971
457821
464804
652213
549739
592402
598899
483210
418440
434774
447948
527009
580807
557569
663769
612699
438013
492528
517405
404693
444851
457132
498623
564541
483553
457884
536903
545245
710524
478973
502779
486871
553031
]
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 (673833 , 715106 , 703582 , 794090 , 800565 , 813122 , 777631 , 758780 , 737441 , 714515 , 720174 , 782427 , 509099 , 452643 , 488454 , 465247 , 508072 , 534604 , 581213 , 583866 , 571086 , 714925 , 722934 , 708551 , 636403 , 758865 , 420513 , 454625 , 486610 , 441454 , 442524 , 427971 , 457821 , 464804 , 652213 , 549739 , 592402 , 598899 , 483210 , 418440 , 434774 , 447948 , 527009 , 580807 , 557569 , 663769 , 612699 , 438013 , 492528 , 517405 , 404693 , 444851 , 457132 , 498623 , 564541 , 483553 , 457884 , 536903 , 545245 , 710524 , 478973 , 502779 , 486871 , 553031 );
Copy
2.25 ms (0.70%)
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
404693
418440
420513
427971
434774
438013
441454
442524
444851
447948
452643
454625
457132
457821
457884
464804
465247
478973
483210
483553
486610
486871
488454
492528
498623
502779
508072
509099
517405
527009
534604
536903
545245
549739
553031
557569
564541
571086
580807
581213
583866
592402
598899
612699
636403
652213
663769
673833
703582
708551
710524
714515
714925
715106
720174
722934
737441
758780
758865
777631
782427
794090
800565
813122
]
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 (404693 , 418440 , 420513 , 427971 , 434774 , 438013 , 441454 , 442524 , 444851 , 447948 , 452643 , 454625 , 457132 , 457821 , 457884 , 464804 , 465247 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 492528 , 498623 , 502779 , 508072 , 509099 , 517405 , 527009 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 564541 , 571086 , 580807 , 581213 , 583866 , 592402 , 598899 , 612699 , 636403 , 652213 , 663769 , 673833 , 703582 , 708551 , 710524 , 714515 , 714925 , 715106 , 720174 , 722934 , 737441 , 758780 , 758865 , 777631 , 782427 , 794090 , 800565 , 813122 );
Copy