4
9.45 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
541166
691846
543678
567518
554686
746646
751390
811844
817613
797255
752477
809800
641313
811907
746603
568293
797250
804422
701194
811889
573386
618129
657777
560218
579856
725539
811900
814706
811891
811880
751170
709298
541194
745998
583102
588391
803214
520879
554707
554683
811902
811905
811852
751384
738694
811896
725487
738675
751360
727042
811882
784048
627131
811862
693257
697284
725229
710584
714374
812279
738564
746021
754209
539295
811876
734364
551535
541790
607325
626760
]
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 (541166 , 691846 , 543678 , 567518 , 554686 , 746646 , 751390 , 811844 , 817613 , 797255 , 752477 , 809800 , 641313 , 811907 , 746603 , 568293 , 797250 , 804422 , 701194 , 811889 , 573386 , 618129 , 657777 , 560218 , 579856 , 725539 , 811900 , 814706 , 811891 , 811880 , 751170 , 709298 , 541194 , 745998 , 583102 , 588391 , 803214 , 520879 , 554707 , 554683 , 811902 , 811905 , 811852 , 751384 , 738694 , 811896 , 725487 , 738675 , 751360 , 727042 , 811882 , 784048 , 627131 , 811862 , 693257 , 697284 , 725229 , 710584 , 714374 , 812279 , 738564 , 746021 , 754209 , 539295 , 811876 , 734364 , 551535 , 541790 , 607325 , 626760 );
Copy
5
2.37 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
520879
539295
541166
541194
541790
543678
551535
554683
554686
554707
560218
567518
568293
573386
579856
583102
588391
607325
618129
626760
627131
641313
657777
691846
693257
697284
701194
709298
710584
714374
725229
725487
725539
727042
734364
738564
738675
738694
745998
746021
746603
746646
751170
751360
751384
751390
752477
754209
784048
797250
797255
803214
804422
809800
811844
811852
811862
811876
811880
811882
811889
811891
811896
811900
811902
811905
811907
812279
814706
817613
]
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 (520879 , 539295 , 541166 , 541194 , 541790 , 543678 , 551535 , 554683 , 554686 , 554707 , 560218 , 567518 , 568293 , 573386 , 579856 , 583102 , 588391 , 607325 , 618129 , 626760 , 627131 , 641313 , 657777 , 691846 , 693257 , 697284 , 701194 , 709298 , 710584 , 714374 , 725229 , 725487 , 725539 , 727042 , 734364 , 738564 , 738675 , 738694 , 745998 , 746021 , 746603 , 746646 , 751170 , 751360 , 751384 , 751390 , 752477 , 754209 , 784048 , 797250 , 797255 , 803214 , 804422 , 809800 , 811844 , 811852 , 811862 , 811876 , 811880 , 811882 , 811889 , 811891 , 811896 , 811900 , 811902 , 811905 , 811907 , 812279 , 814706 , 817613 );
Copy
6
75.42 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
520879
539295
541166
541194
541790
543678
551535
554683
554686
554707
560218
567518
568293
573386
579856
583102
588391
607325
618129
626760
627131
641313
657777
691846
693257
697284
701194
709298
710584
714374
725229
725487
725539
727042
734364
738564
738675
738694
745998
746021
746603
746646
751170
751360
751384
751390
752477
754209
784048
797250
797255
803214
804422
809800
811844
811852
811862
811876
811880
811882
811889
811891
811896
811900
811902
811905
811907
812279
814706
817613
]
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 (520879 , 539295 , 541166 , 541194 , 541790 , 543678 , 551535 , 554683 , 554686 , 554707 , 560218 , 567518 , 568293 , 573386 , 579856 , 583102 , 588391 , 607325 , 618129 , 626760 , 627131 , 641313 , 657777 , 691846 , 693257 , 697284 , 701194 , 709298 , 710584 , 714374 , 725229 , 725487 , 725539 , 727042 , 734364 , 738564 , 738675 , 738694 , 745998 , 746021 , 746603 , 746646 , 751170 , 751360 , 751384 , 751390 , 752477 , 754209 , 784048 , 797250 , 797255 , 803214 , 804422 , 809800 , 811844 , 811852 , 811862 , 811876 , 811880 , 811882 , 811889 , 811891 , 811896 , 811900 , 811902 , 811905 , 811907 , 812279 , 814706 , 817613 );
Copy