3
11.26 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
460041
445608
447861
458486
472783
490261
598918
632715
614739
470593
423654
478787
421187
448831
492040
484836
330046
443733
428404
443364
468019
476119
480709
476448
598559
586494
807558
404273
412738
419722
404743
411751
484448
504201
96029
387537
387905
404778
425129
418848
451985
452474
458614
559162
410935
421654
387782
462372
480429
474678
501797
484381
485712
506042
486706
498057
408214
481134
807191
417212
460738
504231
484748
443323
577356
474689
455898
516684
671863
467981
559062
516686
]
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 (460041 , 445608 , 447861 , 458486 , 472783 , 490261 , 598918 , 632715 , 614739 , 470593 , 423654 , 478787 , 421187 , 448831 , 492040 , 484836 , 330046 , 443733 , 428404 , 443364 , 468019 , 476119 , 480709 , 476448 , 598559 , 586494 , 807558 , 404273 , 412738 , 419722 , 404743 , 411751 , 484448 , 504201 , 96029 , 387537 , 387905 , 404778 , 425129 , 418848 , 451985 , 452474 , 458614 , 559162 , 410935 , 421654 , 387782 , 462372 , 480429 , 474678 , 501797 , 484381 , 485712 , 506042 , 486706 , 498057 , 408214 , 481134 , 807191 , 417212 , 460738 , 504231 , 484748 , 443323 , 577356 , 474689 , 455898 , 516684 , 671863 , 467981 , 559062 , 516686 );
Copy
4
2.48 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
96029
330046
387537
387782
387905
404273
404743
404778
408214
410935
411751
412738
417212
418848
419722
421187
421654
423654
425129
428404
443323
443364
443733
445608
447861
448831
451985
452474
455898
458486
458614
460041
460738
462372
467981
468019
470593
472783
474678
474689
476119
476448
478787
480429
480709
481134
484381
484448
484748
484836
485712
486706
490261
492040
498057
501797
504201
504231
506042
516684
516686
559062
559162
577356
586494
598559
598918
614739
632715
671863
807191
807558
]
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 (96029 , 330046 , 387537 , 387782 , 387905 , 404273 , 404743 , 404778 , 408214 , 410935 , 411751 , 412738 , 417212 , 418848 , 419722 , 421187 , 421654 , 423654 , 425129 , 428404 , 443323 , 443364 , 443733 , 445608 , 447861 , 448831 , 451985 , 452474 , 455898 , 458486 , 458614 , 460041 , 460738 , 462372 , 467981 , 468019 , 470593 , 472783 , 474678 , 474689 , 476119 , 476448 , 478787 , 480429 , 480709 , 481134 , 484381 , 484448 , 484748 , 484836 , 485712 , 486706 , 490261 , 492040 , 498057 , 501797 , 504201 , 504231 , 506042 , 516684 , 516686 , 559062 , 559162 , 577356 , 586494 , 598559 , 598918 , 614739 , 632715 , 671863 , 807191 , 807558 );
Copy
5
121.64 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
96029
330046
387537
387782
387905
404273
404743
404778
408214
410935
411751
412738
417212
418848
419722
421187
421654
423654
425129
428404
443323
443364
443733
445608
447861
448831
451985
452474
455898
458486
458614
460041
460738
462372
467981
468019
470593
472783
474678
474689
476119
476448
478787
480429
480709
481134
484381
484448
484748
484836
485712
486706
490261
492040
498057
501797
504201
504231
506042
516684
516686
559062
559162
577356
586494
598559
598918
614739
632715
671863
807191
807558
]
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 (96029 , 330046 , 387537 , 387782 , 387905 , 404273 , 404743 , 404778 , 408214 , 410935 , 411751 , 412738 , 417212 , 418848 , 419722 , 421187 , 421654 , 423654 , 425129 , 428404 , 443323 , 443364 , 443733 , 445608 , 447861 , 448831 , 451985 , 452474 , 455898 , 458486 , 458614 , 460041 , 460738 , 462372 , 467981 , 468019 , 470593 , 472783 , 474678 , 474689 , 476119 , 476448 , 478787 , 480429 , 480709 , 481134 , 484381 , 484448 , 484748 , 484836 , 485712 , 486706 , 490261 , 492040 , 498057 , 501797 , 504201 , 504231 , 506042 , 516684 , 516686 , 559062 , 559162 , 577356 , 586494 , 598559 , 598918 , 614739 , 632715 , 671863 , 807191 , 807558 );
Copy