3
10.42 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
543680
542444
598658
795990
795951
725392
763741
718782
715073
741691
765517
564281
751606
795939
795962
619204
773474
749620
804235
752950
718766
801292
542724
696776
751567
555967
718745
555055
545905
738309
729251
708232
547805
751640
637741
775958
795952
795961
795943
556000
554998
605846
543652
758251
795974
795979
795924
741761
464727
800698
741756
555805
741692
558622
699625
811887
794019
775860
552938
776940
601584
816168
744418
737438
619091
626872
541575
747069
439798
567457
554711
616978
546993
]
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 (543680 , 542444 , 598658 , 795990 , 795951 , 725392 , 763741 , 718782 , 715073 , 741691 , 765517 , 564281 , 751606 , 795939 , 795962 , 619204 , 773474 , 749620 , 804235 , 752950 , 718766 , 801292 , 542724 , 696776 , 751567 , 555967 , 718745 , 555055 , 545905 , 738309 , 729251 , 708232 , 547805 , 751640 , 637741 , 775958 , 795952 , 795961 , 795943 , 556000 , 554998 , 605846 , 543652 , 758251 , 795974 , 795979 , 795924 , 741761 , 464727 , 800698 , 741756 , 555805 , 741692 , 558622 , 699625 , 811887 , 794019 , 775860 , 552938 , 776940 , 601584 , 816168 , 744418 , 737438 , 619091 , 626872 , 541575 , 747069 , 439798 , 567457 , 554711 , 616978 , 546993 );
Copy
4
3.31 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
439798
464727
541575
542444
542724
543652
543680
545905
546993
547805
552938
554711
554998
555055
555805
555967
556000
558622
564281
567457
598658
601584
605846
616978
619091
619204
626872
637741
696776
699625
708232
715073
718745
718766
718782
725392
729251
737438
738309
741691
741692
741756
741761
744418
747069
749620
751567
751606
751640
752950
758251
763741
765517
773474
775860
775958
776940
794019
795924
795939
795943
795951
795952
795961
795962
795974
795979
795990
800698
801292
804235
811887
816168
]
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 (439798 , 464727 , 541575 , 542444 , 542724 , 543652 , 543680 , 545905 , 546993 , 547805 , 552938 , 554711 , 554998 , 555055 , 555805 , 555967 , 556000 , 558622 , 564281 , 567457 , 598658 , 601584 , 605846 , 616978 , 619091 , 619204 , 626872 , 637741 , 696776 , 699625 , 708232 , 715073 , 718745 , 718766 , 718782 , 725392 , 729251 , 737438 , 738309 , 741691 , 741692 , 741756 , 741761 , 744418 , 747069 , 749620 , 751567 , 751606 , 751640 , 752950 , 758251 , 763741 , 765517 , 773474 , 775860 , 775958 , 776940 , 794019 , 795924 , 795939 , 795943 , 795951 , 795952 , 795961 , 795962 , 795974 , 795979 , 795990 , 800698 , 801292 , 804235 , 811887 , 816168 );
Copy
5
105.83 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
439798
464727
541575
542444
542724
543652
543680
545905
546993
547805
552938
554711
554998
555055
555805
555967
556000
558622
564281
567457
598658
601584
605846
616978
619091
619204
626872
637741
696776
699625
708232
715073
718745
718766
718782
725392
729251
737438
738309
741691
741692
741756
741761
744418
747069
749620
751567
751606
751640
752950
758251
763741
765517
773474
775860
775958
776940
794019
795924
795939
795943
795951
795952
795961
795962
795974
795979
795990
800698
801292
804235
811887
816168
]
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 (439798 , 464727 , 541575 , 542444 , 542724 , 543652 , 543680 , 545905 , 546993 , 547805 , 552938 , 554711 , 554998 , 555055 , 555805 , 555967 , 556000 , 558622 , 564281 , 567457 , 598658 , 601584 , 605846 , 616978 , 619091 , 619204 , 626872 , 637741 , 696776 , 699625 , 708232 , 715073 , 718745 , 718766 , 718782 , 725392 , 729251 , 737438 , 738309 , 741691 , 741692 , 741756 , 741761 , 744418 , 747069 , 749620 , 751567 , 751606 , 751640 , 752950 , 758251 , 763741 , 765517 , 773474 , 775860 , 775958 , 776940 , 794019 , 795924 , 795939 , 795943 , 795951 , 795952 , 795961 , 795962 , 795974 , 795979 , 795990 , 800698 , 801292 , 804235 , 811887 , 816168 );
Copy