77.55 ms (61.98%)
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
399876
415883
417324
417328
425356
435108
436132
440632
448817
449869
452228
452242
452282
458986
462470
463716
467334
468592
471780
473722
478527
480929
483094
484801
485149
490071
494269
496270
505132
506612
516291
516633
520028
521089
521156
521367
522478
530777
531182
531481
532766
533746
535013
540400
542550
545763
545801
545802
551225
551916
553255
557236
559187
566786
576346
576723
579358
580151
583714
597028
612061
625222
625412
636598
637074
642039
646771
662048
675123
745384
]
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 (399876 , 415883 , 417324 , 417328 , 425356 , 435108 , 436132 , 440632 , 448817 , 449869 , 452228 , 452242 , 452282 , 458986 , 462470 , 463716 , 467334 , 468592 , 471780 , 473722 , 478527 , 480929 , 483094 , 484801 , 485149 , 490071 , 494269 , 496270 , 505132 , 506612 , 516291 , 516633 , 520028 , 521089 , 521156 , 521367 , 522478 , 530777 , 531182 , 531481 , 532766 , 533746 , 535013 , 540400 , 542550 , 545763 , 545801 , 545802 , 551225 , 551916 , 553255 , 557236 , 559187 , 566786 , 576346 , 576723 , 579358 , 580151 , 583714 , 597028 , 612061 , 625222 , 625412 , 636598 , 637074 , 642039 , 646771 , 662048 , 675123 , 745384 );
Copy
13.97 ms (11.16%)
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
540400
576346
435108
473722
551916
662048
636598
483094
490071
436132
471780
521156
463716
516633
452228
579358
467334
521367
458986
520028
452282
553255
480929
625412
484801
625222
612061
417324
399876
559187
646771
478527
462470
545801
494269
468592
597028
440632
551225
496270
745384
452242
521089
448817
516291
583714
535013
449869
675123
425356
545763
415883
505132
531182
485149
545802
580151
417328
642039
566786
576723
522478
531481
530777
506612
637074
557236
533746
542550
532766
]
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 (540400 , 576346 , 435108 , 473722 , 551916 , 662048 , 636598 , 483094 , 490071 , 436132 , 471780 , 521156 , 463716 , 516633 , 452228 , 579358 , 467334 , 521367 , 458986 , 520028 , 452282 , 553255 , 480929 , 625412 , 484801 , 625222 , 612061 , 417324 , 399876 , 559187 , 646771 , 478527 , 462470 , 545801 , 494269 , 468592 , 597028 , 440632 , 551225 , 496270 , 745384 , 452242 , 521089 , 448817 , 516291 , 583714 , 535013 , 449869 , 675123 , 425356 , 545763 , 415883 , 505132 , 531182 , 485149 , 545802 , 580151 , 417328 , 642039 , 566786 , 576723 , 522478 , 531481 , 530777 , 506612 , 637074 , 557236 , 533746 , 542550 , 532766 );
Copy
2.99 ms (2.39%)
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
399876
415883
417324
417328
425356
435108
436132
440632
448817
449869
452228
452242
452282
458986
462470
463716
467334
468592
471780
473722
478527
480929
483094
484801
485149
490071
494269
496270
505132
506612
516291
516633
520028
521089
521156
521367
522478
530777
531182
531481
532766
533746
535013
540400
542550
545763
545801
545802
551225
551916
553255
557236
559187
566786
576346
576723
579358
580151
583714
597028
612061
625222
625412
636598
637074
642039
646771
662048
675123
745384
]
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 (399876 , 415883 , 417324 , 417328 , 425356 , 435108 , 436132 , 440632 , 448817 , 449869 , 452228 , 452242 , 452282 , 458986 , 462470 , 463716 , 467334 , 468592 , 471780 , 473722 , 478527 , 480929 , 483094 , 484801 , 485149 , 490071 , 494269 , 496270 , 505132 , 506612 , 516291 , 516633 , 520028 , 521089 , 521156 , 521367 , 522478 , 530777 , 531182 , 531481 , 532766 , 533746 , 535013 , 540400 , 542550 , 545763 , 545801 , 545802 , 551225 , 551916 , 553255 , 557236 , 559187 , 566786 , 576346 , 576723 , 579358 , 580151 , 583714 , 597028 , 612061 , 625222 , 625412 , 636598 , 637074 , 642039 , 646771 , 662048 , 675123 , 745384 );
Copy