3
13.01 ms
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
778059
669224
686034
536597
564270
804176
529317
737682
733560
618853
533490
720924
680161
592802
739671
532926
632681
579650
573803
633042
532968
632678
533002
645786
603156
617618
728571
652548
730450
680198
617414
808080
521061
716778
778069
535732
532675
651080
536613
676073
704715
605449
517861
579651
631199
634116
678109
579633
633987
535024
530489
542975
632692
641678
639759
535584
678063
677766
599875
666876
601535
672712
678131
600296
647355
628371
637074
628333
]
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 (778059 , 669224 , 686034 , 536597 , 564270 , 804176 , 529317 , 737682 , 733560 , 618853 , 533490 , 720924 , 680161 , 592802 , 739671 , 532926 , 632681 , 579650 , 573803 , 633042 , 532968 , 632678 , 533002 , 645786 , 603156 , 617618 , 728571 , 652548 , 730450 , 680198 , 617414 , 808080 , 521061 , 716778 , 778069 , 535732 , 532675 , 651080 , 536613 , 676073 , 704715 , 605449 , 517861 , 579651 , 631199 , 634116 , 678109 , 579633 , 633987 , 535024 , 530489 , 542975 , 632692 , 641678 , 639759 , 535584 , 678063 , 677766 , 599875 , 666876 , 601535 , 672712 , 678131 , 600296 , 647355 , 628371 , 637074 , 628333 );
Copy
4
3.11 ms
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
517861
521061
529317
530489
532675
532926
532968
533002
533490
535024
535584
535732
536597
536613
542975
564270
573803
579633
579650
579651
592802
599875
600296
601535
603156
605449
617414
617618
618853
628333
628371
631199
632678
632681
632692
633042
633987
634116
637074
639759
641678
645786
647355
651080
652548
666876
669224
672712
676073
677766
678063
678109
678131
680161
680198
686034
704715
716778
720924
728571
730450
733560
737682
739671
778059
778069
804176
808080
]
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 (517861 , 521061 , 529317 , 530489 , 532675 , 532926 , 532968 , 533002 , 533490 , 535024 , 535584 , 535732 , 536597 , 536613 , 542975 , 564270 , 573803 , 579633 , 579650 , 579651 , 592802 , 599875 , 600296 , 601535 , 603156 , 605449 , 617414 , 617618 , 618853 , 628333 , 628371 , 631199 , 632678 , 632681 , 632692 , 633042 , 633987 , 634116 , 637074 , 639759 , 641678 , 645786 , 647355 , 651080 , 652548 , 666876 , 669224 , 672712 , 676073 , 677766 , 678063 , 678109 , 678131 , 680161 , 680198 , 686034 , 704715 , 716778 , 720924 , 728571 , 730450 , 733560 , 737682 , 739671 , 778059 , 778069 , 804176 , 808080 );
Copy
5
76.71 ms
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
517861
521061
529317
530489
532675
532926
532968
533002
533490
535024
535584
535732
536597
536613
542975
564270
573803
579633
579650
579651
592802
599875
600296
601535
603156
605449
617414
617618
618853
628333
628371
631199
632678
632681
632692
633042
633987
634116
637074
639759
641678
645786
647355
651080
652548
666876
669224
672712
676073
677766
678063
678109
678131
680161
680198
686034
704715
716778
720924
728571
730450
733560
737682
739671
778059
778069
804176
808080
]
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 (517861 , 521061 , 529317 , 530489 , 532675 , 532926 , 532968 , 533002 , 533490 , 535024 , 535584 , 535732 , 536597 , 536613 , 542975 , 564270 , 573803 , 579633 , 579650 , 579651 , 592802 , 599875 , 600296 , 601535 , 603156 , 605449 , 617414 , 617618 , 618853 , 628333 , 628371 , 631199 , 632678 , 632681 , 632692 , 633042 , 633987 , 634116 , 637074 , 639759 , 641678 , 645786 , 647355 , 651080 , 652548 , 666876 , 669224 , 672712 , 676073 , 677766 , 678063 , 678109 , 678131 , 680161 , 680198 , 686034 , 704715 , 716778 , 720924 , 728571 , 730450 , 733560 , 737682 , 739671 , 778059 , 778069 , 804176 , 808080 );
Copy