81.69 ms (64.40%)
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
58584
330478
402592
425988
439540
439649
440780
440820
440926
443357
447102
452601
460693
467879
473504
477462
496518
499824
502538
502554
503085
513506
513694
515361
516103
519723
519851
522215
522759
522783
523160
525881
527447
528719
542743
547931
553661
562030
563634
568062
571823
571998
577400
578586
578729
578793
583894
588039
590221
592288
592817
598915
601035
602492
604050
605661
605971
606665
606727
607027
607470
608230
608336
612087
624776
626399
626811
626885
653101
]
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 (58584 , 330478 , 402592 , 425988 , 439540 , 439649 , 440780 , 440820 , 440926 , 443357 , 447102 , 452601 , 460693 , 467879 , 473504 , 477462 , 496518 , 499824 , 502538 , 502554 , 503085 , 513506 , 513694 , 515361 , 516103 , 519723 , 519851 , 522215 , 522759 , 522783 , 523160 , 525881 , 527447 , 528719 , 542743 , 547931 , 553661 , 562030 , 563634 , 568062 , 571823 , 571998 , 577400 , 578586 , 578729 , 578793 , 583894 , 588039 , 590221 , 592288 , 592817 , 598915 , 601035 , 602492 , 604050 , 605661 , 605971 , 606665 , 606727 , 607027 , 607470 , 608230 , 608336 , 612087 , 624776 , 626399 , 626811 , 626885 , 653101 );
Copy
13.03 ms (10.27%)
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
513694
562030
519723
425988
440780
447102
460693
477462
547931
578793
583894
626399
592817
606727
439540
467879
440820
515361
503085
443357
571998
523160
626811
499824
606665
502554
522783
653101
528719
577400
578729
571823
605661
607470
330478
496518
598915
626885
440926
519851
542743
602492
601035
58584
402592
607027
473504
502538
604050
439649
522215
522759
452601
578586
525881
608230
563634
513506
608336
592288
568062
553661
624776
612087
590221
527447
605971
588039
516103
]
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 (513694 , 562030 , 519723 , 425988 , 440780 , 447102 , 460693 , 477462 , 547931 , 578793 , 583894 , 626399 , 592817 , 606727 , 439540 , 467879 , 440820 , 515361 , 503085 , 443357 , 571998 , 523160 , 626811 , 499824 , 606665 , 502554 , 522783 , 653101 , 528719 , 577400 , 578729 , 571823 , 605661 , 607470 , 330478 , 496518 , 598915 , 626885 , 440926 , 519851 , 542743 , 602492 , 601035 , 58584 , 402592 , 607027 , 473504 , 502538 , 604050 , 439649 , 522215 , 522759 , 452601 , 578586 , 525881 , 608230 , 563634 , 513506 , 608336 , 592288 , 568062 , 553661 , 624776 , 612087 , 590221 , 527447 , 605971 , 588039 , 516103 );
Copy
3.29 ms (2.59%)
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
58584
330478
402592
425988
439540
439649
440780
440820
440926
443357
447102
452601
460693
467879
473504
477462
496518
499824
502538
502554
503085
513506
513694
515361
516103
519723
519851
522215
522759
522783
523160
525881
527447
528719
542743
547931
553661
562030
563634
568062
571823
571998
577400
578586
578729
578793
583894
588039
590221
592288
592817
598915
601035
602492
604050
605661
605971
606665
606727
607027
607470
608230
608336
612087
624776
626399
626811
626885
653101
]
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 (58584 , 330478 , 402592 , 425988 , 439540 , 439649 , 440780 , 440820 , 440926 , 443357 , 447102 , 452601 , 460693 , 467879 , 473504 , 477462 , 496518 , 499824 , 502538 , 502554 , 503085 , 513506 , 513694 , 515361 , 516103 , 519723 , 519851 , 522215 , 522759 , 522783 , 523160 , 525881 , 527447 , 528719 , 542743 , 547931 , 553661 , 562030 , 563634 , 568062 , 571823 , 571998 , 577400 , 578586 , 578729 , 578793 , 583894 , 588039 , 590221 , 592288 , 592817 , 598915 , 601035 , 602492 , 604050 , 605661 , 605971 , 606665 , 606727 , 607027 , 607470 , 608230 , 608336 , 612087 , 624776 , 626399 , 626811 , 626885 , 653101 );
Copy