3
14.69 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
825037
475039
557742
684339
474803
398476
785438
391405
561465
725921
741047
746109
768887
397811
549833
713193
473206
790882
34342
732201
454863
472093
548623
443760
798679
403411
813956
415425
421784
558245
575759
718553
808474
483131
486081
472569
715869
403464
414036
448563
567014
584890
478797
505826
453782
460829
476902
555995
423976
454862
518312
577582
565365
613167
518252
418941
517014
532682
522328
566993
481803
528829
623380
499488
]
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 (825037 , 475039 , 557742 , 684339 , 474803 , 398476 , 785438 , 391405 , 561465 , 725921 , 741047 , 746109 , 768887 , 397811 , 549833 , 713193 , 473206 , 790882 , 34342 , 732201 , 454863 , 472093 , 548623 , 443760 , 798679 , 403411 , 813956 , 415425 , 421784 , 558245 , 575759 , 718553 , 808474 , 483131 , 486081 , 472569 , 715869 , 403464 , 414036 , 448563 , 567014 , 584890 , 478797 , 505826 , 453782 , 460829 , 476902 , 555995 , 423976 , 454862 , 518312 , 577582 , 565365 , 613167 , 518252 , 418941 , 517014 , 532682 , 522328 , 566993 , 481803 , 528829 , 623380 , 499488 );
Copy
4
2.72 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
34342
391405
397811
398476
403411
403464
414036
415425
418941
421784
423976
443760
448563
453782
454862
454863
460829
472093
472569
473206
474803
475039
476902
478797
481803
483131
486081
499488
505826
517014
518252
518312
522328
528829
532682
548623
549833
555995
557742
558245
561465
565365
566993
567014
575759
577582
584890
613167
623380
684339
713193
715869
718553
725921
732201
741047
746109
768887
785438
790882
798679
808474
813956
825037
]
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 (34342 , 391405 , 397811 , 398476 , 403411 , 403464 , 414036 , 415425 , 418941 , 421784 , 423976 , 443760 , 448563 , 453782 , 454862 , 454863 , 460829 , 472093 , 472569 , 473206 , 474803 , 475039 , 476902 , 478797 , 481803 , 483131 , 486081 , 499488 , 505826 , 517014 , 518252 , 518312 , 522328 , 528829 , 532682 , 548623 , 549833 , 555995 , 557742 , 558245 , 561465 , 565365 , 566993 , 567014 , 575759 , 577582 , 584890 , 613167 , 623380 , 684339 , 713193 , 715869 , 718553 , 725921 , 732201 , 741047 , 746109 , 768887 , 785438 , 790882 , 798679 , 808474 , 813956 , 825037 );
Copy
5
81.14 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
34342
391405
397811
398476
403411
403464
414036
415425
418941
421784
423976
443760
448563
453782
454862
454863
460829
472093
472569
473206
474803
475039
476902
478797
481803
483131
486081
499488
505826
517014
518252
518312
522328
528829
532682
548623
549833
555995
557742
558245
561465
565365
566993
567014
575759
577582
584890
613167
623380
684339
713193
715869
718553
725921
732201
741047
746109
768887
785438
790882
798679
808474
813956
825037
]
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 (34342 , 391405 , 397811 , 398476 , 403411 , 403464 , 414036 , 415425 , 418941 , 421784 , 423976 , 443760 , 448563 , 453782 , 454862 , 454863 , 460829 , 472093 , 472569 , 473206 , 474803 , 475039 , 476902 , 478797 , 481803 , 483131 , 486081 , 499488 , 505826 , 517014 , 518252 , 518312 , 522328 , 528829 , 532682 , 548623 , 549833 , 555995 , 557742 , 558245 , 561465 , 565365 , 566993 , 567014 , 575759 , 577582 , 584890 , 613167 , 623380 , 684339 , 713193 , 715869 , 718553 , 725921 , 732201 , 741047 , 746109 , 768887 , 785438 , 790882 , 798679 , 808474 , 813956 , 825037 );
Copy