100.92 ms (67.04%)
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
385734
421991
426359
429934
438102
443580
455245
455730
456168
464619
470891
471498
473139
473507
477362
481612
484530
485997
487550
488928
490308
491130
492336
504250
505376
510631
511176
512410
513483
516443
517478
519786
520654
520961
520986
521495
525546
525793
525995
526118
527599
528140
528931
534173
547708
553147
557267
557992
559009
563410
564132
566288
566869
576049
591214
595682
597148
599510
602246
612297
622839
624142
624480
652756
753084
780968
785635
]
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 (385734 , 421991 , 426359 , 429934 , 438102 , 443580 , 455245 , 455730 , 456168 , 464619 , 470891 , 471498 , 473139 , 473507 , 477362 , 481612 , 484530 , 485997 , 487550 , 488928 , 490308 , 491130 , 492336 , 504250 , 505376 , 510631 , 511176 , 512410 , 513483 , 516443 , 517478 , 519786 , 520654 , 520961 , 520986 , 521495 , 525546 , 525793 , 525995 , 526118 , 527599 , 528140 , 528931 , 534173 , 547708 , 553147 , 557267 , 557992 , 559009 , 563410 , 564132 , 566288 , 566869 , 576049 , 591214 , 595682 , 597148 , 599510 , 602246 , 612297 , 622839 , 624142 , 624480 , 652756 , 753084 , 780968 , 785635 );
Copy
13.63 ms (9.05%)
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
652756
780968
385734
595682
553147
525995
421991
491130
488928
557267
563410
443580
547708
612297
470891
528140
520961
512410
481612
520986
513483
599510
785635
438102
534173
492336
753084
564132
471498
516443
484530
624142
520654
429934
526118
510631
485997
511176
525793
557992
591214
505376
519786
504250
455730
473139
426359
477362
455245
624480
473507
576049
464619
527599
456168
528931
517478
525546
559009
487550
566288
490308
521495
566869
602246
622839
597148
]
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 (652756 , 780968 , 385734 , 595682 , 553147 , 525995 , 421991 , 491130 , 488928 , 557267 , 563410 , 443580 , 547708 , 612297 , 470891 , 528140 , 520961 , 512410 , 481612 , 520986 , 513483 , 599510 , 785635 , 438102 , 534173 , 492336 , 753084 , 564132 , 471498 , 516443 , 484530 , 624142 , 520654 , 429934 , 526118 , 510631 , 485997 , 511176 , 525793 , 557992 , 591214 , 505376 , 519786 , 504250 , 455730 , 473139 , 426359 , 477362 , 455245 , 624480 , 473507 , 576049 , 464619 , 527599 , 456168 , 528931 , 517478 , 525546 , 559009 , 487550 , 566288 , 490308 , 521495 , 566869 , 602246 , 622839 , 597148 );
Copy
3.45 ms (2.29%)
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
385734
421991
426359
429934
438102
443580
455245
455730
456168
464619
470891
471498
473139
473507
477362
481612
484530
485997
487550
488928
490308
491130
492336
504250
505376
510631
511176
512410
513483
516443
517478
519786
520654
520961
520986
521495
525546
525793
525995
526118
527599
528140
528931
534173
547708
553147
557267
557992
559009
563410
564132
566288
566869
576049
591214
595682
597148
599510
602246
612297
622839
624142
624480
652756
753084
780968
785635
]
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 (385734 , 421991 , 426359 , 429934 , 438102 , 443580 , 455245 , 455730 , 456168 , 464619 , 470891 , 471498 , 473139 , 473507 , 477362 , 481612 , 484530 , 485997 , 487550 , 488928 , 490308 , 491130 , 492336 , 504250 , 505376 , 510631 , 511176 , 512410 , 513483 , 516443 , 517478 , 519786 , 520654 , 520961 , 520986 , 521495 , 525546 , 525793 , 525995 , 526118 , 527599 , 528140 , 528931 , 534173 , 547708 , 553147 , 557267 , 557992 , 559009 , 563410 , 564132 , 566288 , 566869 , 576049 , 591214 , 595682 , 597148 , 599510 , 602246 , 612297 , 622839 , 624142 , 624480 , 652756 , 753084 , 780968 , 785635 );
Copy