3
9.67 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
572582
547373
777149
658512
806944
814557
722632
642439
747599
653187
778227
808631
701049
789947
807104
805168
755544
770255
465690
775149
510445
524903
644718
828568
97598
741976
97689
618115
637647
591677
788993
390150
818002
421087
821866
454833
741007
385700
645081
624459
388688
534064
401724
441149
499821
569189
564632
715554
788999
390217
448177
504553
236863
449729
464138
520236
574481
606599
451757
565751
401932
592340
457502
584704
]
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 (572582 , 547373 , 777149 , 658512 , 806944 , 814557 , 722632 , 642439 , 747599 , 653187 , 778227 , 808631 , 701049 , 789947 , 807104 , 805168 , 755544 , 770255 , 465690 , 775149 , 510445 , 524903 , 644718 , 828568 , 97598 , 741976 , 97689 , 618115 , 637647 , 591677 , 788993 , 390150 , 818002 , 421087 , 821866 , 454833 , 741007 , 385700 , 645081 , 624459 , 388688 , 534064 , 401724 , 441149 , 499821 , 569189 , 564632 , 715554 , 788999 , 390217 , 448177 , 504553 , 236863 , 449729 , 464138 , 520236 , 574481 , 606599 , 451757 , 565751 , 401932 , 592340 , 457502 , 584704 );
Copy
4
2.26 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
97598
97689
236863
385700
388688
390150
390217
401724
401932
421087
441149
448177
449729
451757
454833
457502
464138
465690
499821
504553
510445
520236
524903
534064
547373
564632
565751
569189
572582
574481
584704
591677
592340
606599
618115
624459
637647
642439
644718
645081
653187
658512
701049
715554
722632
741007
741976
747599
755544
770255
775149
777149
778227
788993
788999
789947
805168
806944
807104
808631
814557
818002
821866
828568
]
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 (97598 , 97689 , 236863 , 385700 , 388688 , 390150 , 390217 , 401724 , 401932 , 421087 , 441149 , 448177 , 449729 , 451757 , 454833 , 457502 , 464138 , 465690 , 499821 , 504553 , 510445 , 520236 , 524903 , 534064 , 547373 , 564632 , 565751 , 569189 , 572582 , 574481 , 584704 , 591677 , 592340 , 606599 , 618115 , 624459 , 637647 , 642439 , 644718 , 645081 , 653187 , 658512 , 701049 , 715554 , 722632 , 741007 , 741976 , 747599 , 755544 , 770255 , 775149 , 777149 , 778227 , 788993 , 788999 , 789947 , 805168 , 806944 , 807104 , 808631 , 814557 , 818002 , 821866 , 828568 );
Copy
5
70.45 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
97598
97689
236863
385700
388688
390150
390217
401724
401932
421087
441149
448177
449729
451757
454833
457502
464138
465690
499821
504553
510445
520236
524903
534064
547373
564632
565751
569189
572582
574481
584704
591677
592340
606599
618115
624459
637647
642439
644718
645081
653187
658512
701049
715554
722632
741007
741976
747599
755544
770255
775149
777149
778227
788993
788999
789947
805168
806944
807104
808631
814557
818002
821866
828568
]
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 (97598 , 97689 , 236863 , 385700 , 388688 , 390150 , 390217 , 401724 , 401932 , 421087 , 441149 , 448177 , 449729 , 451757 , 454833 , 457502 , 464138 , 465690 , 499821 , 504553 , 510445 , 520236 , 524903 , 534064 , 547373 , 564632 , 565751 , 569189 , 572582 , 574481 , 584704 , 591677 , 592340 , 606599 , 618115 , 624459 , 637647 , 642439 , 644718 , 645081 , 653187 , 658512 , 701049 , 715554 , 722632 , 741007 , 741976 , 747599 , 755544 , 770255 , 775149 , 777149 , 778227 , 788993 , 788999 , 789947 , 805168 , 806944 , 807104 , 808631 , 814557 , 818002 , 821866 , 828568 );
Copy