3
11.11 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
828377
623805
579923
827453
823727
537698
824505
796188
794380
533108
706969
716231
617470
725159
793189
721632
504334
539321
793775
644872
668272
794432
755532
734610
781417
644840
648739
589149
795187
428686
790689
425209
716105
756458
700770
687306
744516
613791
425244
509621
528331
508535
564876
596968
808416
448169
522931
814885
450220
822946
471109
477631
540622
547755
585325
535414
477451
559930
502749
504787
508619
439587
422198
521192
502745
521508
]
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 (828377 , 623805 , 579923 , 827453 , 823727 , 537698 , 824505 , 796188 , 794380 , 533108 , 706969 , 716231 , 617470 , 725159 , 793189 , 721632 , 504334 , 539321 , 793775 , 644872 , 668272 , 794432 , 755532 , 734610 , 781417 , 644840 , 648739 , 589149 , 795187 , 428686 , 790689 , 425209 , 716105 , 756458 , 700770 , 687306 , 744516 , 613791 , 425244 , 509621 , 528331 , 508535 , 564876 , 596968 , 808416 , 448169 , 522931 , 814885 , 450220 , 822946 , 471109 , 477631 , 540622 , 547755 , 585325 , 535414 , 477451 , 559930 , 502749 , 504787 , 508619 , 439587 , 422198 , 521192 , 502745 , 521508 );
Copy
4
3.76 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
422198
425209
425244
428686
439587
448169
450220
471109
477451
477631
502745
502749
504334
504787
508535
508619
509621
521192
521508
522931
528331
533108
535414
537698
539321
540622
547755
559930
564876
579923
585325
589149
596968
613791
617470
623805
644840
644872
648739
668272
687306
700770
706969
716105
716231
721632
725159
734610
744516
755532
756458
781417
790689
793189
793775
794380
794432
795187
796188
808416
814885
822946
823727
824505
827453
828377
]
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 (422198 , 425209 , 425244 , 428686 , 439587 , 448169 , 450220 , 471109 , 477451 , 477631 , 502745 , 502749 , 504334 , 504787 , 508535 , 508619 , 509621 , 521192 , 521508 , 522931 , 528331 , 533108 , 535414 , 537698 , 539321 , 540622 , 547755 , 559930 , 564876 , 579923 , 585325 , 589149 , 596968 , 613791 , 617470 , 623805 , 644840 , 644872 , 648739 , 668272 , 687306 , 700770 , 706969 , 716105 , 716231 , 721632 , 725159 , 734610 , 744516 , 755532 , 756458 , 781417 , 790689 , 793189 , 793775 , 794380 , 794432 , 795187 , 796188 , 808416 , 814885 , 822946 , 823727 , 824505 , 827453 , 828377 );
Copy
5
100.00 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
422198
425209
425244
428686
439587
448169
450220
471109
477451
477631
502745
502749
504334
504787
508535
508619
509621
521192
521508
522931
528331
533108
535414
537698
539321
540622
547755
559930
564876
579923
585325
589149
596968
613791
617470
623805
644840
644872
648739
668272
687306
700770
706969
716105
716231
721632
725159
734610
744516
755532
756458
781417
790689
793189
793775
794380
794432
795187
796188
808416
814885
822946
823727
824505
827453
828377
]
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 (422198 , 425209 , 425244 , 428686 , 439587 , 448169 , 450220 , 471109 , 477451 , 477631 , 502745 , 502749 , 504334 , 504787 , 508535 , 508619 , 509621 , 521192 , 521508 , 522931 , 528331 , 533108 , 535414 , 537698 , 539321 , 540622 , 547755 , 559930 , 564876 , 579923 , 585325 , 589149 , 596968 , 613791 , 617470 , 623805 , 644840 , 644872 , 648739 , 668272 , 687306 , 700770 , 706969 , 716105 , 716231 , 721632 , 725159 , 734610 , 744516 , 755532 , 756458 , 781417 , 790689 , 793189 , 793775 , 794380 , 794432 , 795187 , 796188 , 808416 , 814885 , 822946 , 823727 , 824505 , 827453 , 828377 );
Copy