3
6.60 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
825403
673817
572951
448844
395894
396698
815011
815007
815024
604475
614186
815013
753398
720408
614253
786757
543556
705753
801265
786493
823413
821559
786047
736444
821942
824580
719303
779979
705731
820919
502334
659956
663747
563866
564646
528929
469503
655601
699517
567854
802255
800304
459326
485312
614142
614244
479481
431979
492559
562265
387221
459531
475071
499324
582722
614133
619012
623333
438879
472345
521970
443114
569153
614344
474013
472471
517869
521866
523995
]
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 (825403 , 673817 , 572951 , 448844 , 395894 , 396698 , 815011 , 815007 , 815024 , 604475 , 614186 , 815013 , 753398 , 720408 , 614253 , 786757 , 543556 , 705753 , 801265 , 786493 , 823413 , 821559 , 786047 , 736444 , 821942 , 824580 , 719303 , 779979 , 705731 , 820919 , 502334 , 659956 , 663747 , 563866 , 564646 , 528929 , 469503 , 655601 , 699517 , 567854 , 802255 , 800304 , 459326 , 485312 , 614142 , 614244 , 479481 , 431979 , 492559 , 562265 , 387221 , 459531 , 475071 , 499324 , 582722 , 614133 , 619012 , 623333 , 438879 , 472345 , 521970 , 443114 , 569153 , 614344 , 474013 , 472471 , 517869 , 521866 , 523995 );
Copy
4
1.85 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
387221
395894
396698
431979
438879
443114
448844
459326
459531
469503
472345
472471
474013
475071
479481
485312
492559
499324
502334
517869
521866
521970
523995
528929
543556
562265
563866
564646
567854
569153
572951
582722
604475
614133
614142
614186
614244
614253
614344
619012
623333
655601
659956
663747
673817
699517
705731
705753
719303
720408
736444
753398
779979
786047
786493
786757
800304
801265
802255
815007
815011
815013
815024
820919
821559
821942
823413
824580
825403
]
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 (387221 , 395894 , 396698 , 431979 , 438879 , 443114 , 448844 , 459326 , 459531 , 469503 , 472345 , 472471 , 474013 , 475071 , 479481 , 485312 , 492559 , 499324 , 502334 , 517869 , 521866 , 521970 , 523995 , 528929 , 543556 , 562265 , 563866 , 564646 , 567854 , 569153 , 572951 , 582722 , 604475 , 614133 , 614142 , 614186 , 614244 , 614253 , 614344 , 619012 , 623333 , 655601 , 659956 , 663747 , 673817 , 699517 , 705731 , 705753 , 719303 , 720408 , 736444 , 753398 , 779979 , 786047 , 786493 , 786757 , 800304 , 801265 , 802255 , 815007 , 815011 , 815013 , 815024 , 820919 , 821559 , 821942 , 823413 , 824580 , 825403 );
Copy
5
104.22 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
387221
395894
396698
431979
438879
443114
448844
459326
459531
469503
472345
472471
474013
475071
479481
485312
492559
499324
502334
517869
521866
521970
523995
528929
543556
562265
563866
564646
567854
569153
572951
582722
604475
614133
614142
614186
614244
614253
614344
619012
623333
655601
659956
663747
673817
699517
705731
705753
719303
720408
736444
753398
779979
786047
786493
786757
800304
801265
802255
815007
815011
815013
815024
820919
821559
821942
823413
824580
825403
]
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 (387221 , 395894 , 396698 , 431979 , 438879 , 443114 , 448844 , 459326 , 459531 , 469503 , 472345 , 472471 , 474013 , 475071 , 479481 , 485312 , 492559 , 499324 , 502334 , 517869 , 521866 , 521970 , 523995 , 528929 , 543556 , 562265 , 563866 , 564646 , 567854 , 569153 , 572951 , 582722 , 604475 , 614133 , 614142 , 614186 , 614244 , 614253 , 614344 , 619012 , 623333 , 655601 , 659956 , 663747 , 673817 , 699517 , 705731 , 705753 , 719303 , 720408 , 736444 , 753398 , 779979 , 786047 , 786493 , 786757 , 800304 , 801265 , 802255 , 815007 , 815011 , 815013 , 815024 , 820919 , 821559 , 821942 , 823413 , 824580 , 825403 );
Copy