91.18 ms (39.00%)
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
400927
415781
421844
442612
472679
473761
476905
486476
518464
524551
526527
534276
535446
535447
536436
549830
549840
562342
563075
563873
568465
576971
577354
583491
590731
597165
603634
604213
622392
628362
661987
666545
666553
666899
676433
678578
678580
683054
706058
707180
710863
715380
720262
722234
726134
731866
735023
736224
736231
738382
740698
740863
747557
750257
750260
750289
750494
767271
771147
790814
791154
792619
793142
794894
800496
812542
]
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 (400927 , 415781 , 421844 , 442612 , 472679 , 473761 , 476905 , 486476 , 518464 , 524551 , 526527 , 534276 , 535446 , 535447 , 536436 , 549830 , 549840 , 562342 , 563075 , 563873 , 568465 , 576971 , 577354 , 583491 , 590731 , 597165 , 603634 , 604213 , 622392 , 628362 , 661987 , 666545 , 666553 , 666899 , 676433 , 678578 , 678580 , 683054 , 706058 , 707180 , 710863 , 715380 , 720262 , 722234 , 726134 , 731866 , 735023 , 736224 , 736231 , 738382 , 740698 , 740863 , 747557 , 750257 , 750260 , 750289 , 750494 , 767271 , 771147 , 790814 , 791154 , 792619 , 793142 , 794894 , 800496 , 812542 );
Copy
10.09 ms (4.31%)
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
710863
676433
794894
726134
661987
597165
666553
666545
518464
731866
524551
791154
736231
603634
563873
800496
766050
793142
678578
738382
735023
771147
740698
678580
736224
750260
750494
715380
740863
750257
576971
604213
706058
790814
534276
707180
722234
812542
400927
421844
526527
568465
563075
628362
750289
562342
767271
792619
472679
577354
622392
415781
535447
486476
549840
590731
442612
535446
747557
536436
666899
720262
476905
549830
583491
473761
683054
]
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 (710863 , 676433 , 794894 , 726134 , 661987 , 597165 , 666553 , 666545 , 518464 , 731866 , 524551 , 791154 , 736231 , 603634 , 563873 , 800496 , 766050 , 793142 , 678578 , 738382 , 735023 , 771147 , 740698 , 678580 , 736224 , 750260 , 750494 , 715380 , 740863 , 750257 , 576971 , 604213 , 706058 , 790814 , 534276 , 707180 , 722234 , 812542 , 400927 , 421844 , 526527 , 568465 , 563075 , 628362 , 750289 , 562342 , 767271 , 792619 , 472679 , 577354 , 622392 , 415781 , 535447 , 486476 , 549840 , 590731 , 442612 , 535446 , 747557 , 536436 , 666899 , 720262 , 476905 , 549830 , 583491 , 473761 , 683054 );
Copy
3.62 ms (1.55%)
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
400927
415781
421844
442612
472679
473761
476905
486476
518464
524551
526527
534276
535446
535447
536436
549830
549840
562342
563075
563873
568465
576971
577354
583491
590731
597165
603634
604213
622392
628362
661987
666545
666553
666899
676433
678578
678580
683054
706058
707180
710863
715380
720262
722234
726134
731866
735023
736224
736231
738382
740698
740863
747557
750257
750260
750289
750494
767271
771147
790814
791154
792619
793142
794894
800496
812542
]
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 (400927 , 415781 , 421844 , 442612 , 472679 , 473761 , 476905 , 486476 , 518464 , 524551 , 526527 , 534276 , 535446 , 535447 , 536436 , 549830 , 549840 , 562342 , 563075 , 563873 , 568465 , 576971 , 577354 , 583491 , 590731 , 597165 , 603634 , 604213 , 622392 , 628362 , 661987 , 666545 , 666553 , 666899 , 676433 , 678578 , 678580 , 683054 , 706058 , 707180 , 710863 , 715380 , 720262 , 722234 , 726134 , 731866 , 735023 , 736224 , 736231 , 738382 , 740698 , 740863 , 747557 , 750257 , 750260 , 750289 , 750494 , 767271 , 771147 , 790814 , 791154 , 792619 , 793142 , 794894 , 800496 , 812542 );
Copy