115.14 ms (73.75%)
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
399591
424315
445672
468071
468078
470247
473739
478066
479854
494815
499628
501958
502732
510571
511411
515726
516884
517095
518824
519908
519911
522949
523205
526003
532756
539444
556485
556531
556741
557845
558414
560176
560193
560199
562973
563630
565541
565542
568537
570655
571547
572077
575445
580298
582631
588068
590720
596623
599967
601699
604060
605418
607879
616779
616787
618424
625167
625437
625440
634230
635074
641418
644025
698124
704222
815268
]
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 (399591 , 424315 , 445672 , 468071 , 468078 , 470247 , 473739 , 478066 , 479854 , 494815 , 499628 , 501958 , 502732 , 510571 , 511411 , 515726 , 516884 , 517095 , 518824 , 519908 , 519911 , 522949 , 523205 , 526003 , 532756 , 539444 , 556485 , 556531 , 556741 , 557845 , 558414 , 560176 , 560193 , 560199 , 562973 , 563630 , 565541 , 565542 , 568537 , 570655 , 571547 , 572077 , 575445 , 580298 , 582631 , 588068 , 590720 , 596623 , 599967 , 601699 , 604060 , 605418 , 607879 , 616779 , 616787 , 618424 , 625167 , 625437 , 625440 , 634230 , 635074 , 641418 , 644025 , 698124 , 704222 , 815268 );
Copy
16.74 ms (10.72%)
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
511411
568537
494815
499628
590720
635074
704222
518824
502732
501958
539444
399591
478066
604060
601699
516884
558414
562973
523205
580298
565542
596623
522949
532756
605418
644025
526003
473739
517095
510571
571547
572077
556531
815268
557845
570655
468071
607879
519908
515726
575445
618424
445672
556485
470247
560193
556741
519911
641418
582631
424315
698124
563630
625167
588068
560176
616787
479854
560199
625437
468078
634230
565541
599967
616779
625440
]
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 (511411 , 568537 , 494815 , 499628 , 590720 , 635074 , 704222 , 518824 , 502732 , 501958 , 539444 , 399591 , 478066 , 604060 , 601699 , 516884 , 558414 , 562973 , 523205 , 580298 , 565542 , 596623 , 522949 , 532756 , 605418 , 644025 , 526003 , 473739 , 517095 , 510571 , 571547 , 572077 , 556531 , 815268 , 557845 , 570655 , 468071 , 607879 , 519908 , 515726 , 575445 , 618424 , 445672 , 556485 , 470247 , 560193 , 556741 , 519911 , 641418 , 582631 , 424315 , 698124 , 563630 , 625167 , 588068 , 560176 , 616787 , 479854 , 560199 , 625437 , 468078 , 634230 , 565541 , 599967 , 616779 , 625440 );
Copy
1.96 ms (1.26%)
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
399591
424315
445672
468071
468078
470247
473739
478066
479854
494815
499628
501958
502732
510571
511411
515726
516884
517095
518824
519908
519911
522949
523205
526003
532756
539444
556485
556531
556741
557845
558414
560176
560193
560199
562973
563630
565541
565542
568537
570655
571547
572077
575445
580298
582631
588068
590720
596623
599967
601699
604060
605418
607879
616779
616787
618424
625167
625437
625440
634230
635074
641418
644025
698124
704222
815268
]
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 (399591 , 424315 , 445672 , 468071 , 468078 , 470247 , 473739 , 478066 , 479854 , 494815 , 499628 , 501958 , 502732 , 510571 , 511411 , 515726 , 516884 , 517095 , 518824 , 519908 , 519911 , 522949 , 523205 , 526003 , 532756 , 539444 , 556485 , 556531 , 556741 , 557845 , 558414 , 560176 , 560193 , 560199 , 562973 , 563630 , 565541 , 565542 , 568537 , 570655 , 571547 , 572077 , 575445 , 580298 , 582631 , 588068 , 590720 , 596623 , 599967 , 601699 , 604060 , 605418 , 607879 , 616779 , 616787 , 618424 , 625167 , 625437 , 625440 , 634230 , 635074 , 641418 , 644025 , 698124 , 704222 , 815268 );
Copy