4
12.19 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
534751
534750
481667
618656
595323
512816
672498
622230
504722
672584
794768
768334
774886
543777
813767
786472
807420
544688
544708
532259
810935
788808
828511
825094
672469
401364
422704
396898
261001
593219
623854
420156
101894
382031
415640
452089
458196
672574
596618
596629
430146
17093
414220
382186
451953
454909
521067
473218
512799
668472
614095
586534
476810
452063
514309
535459
603724
493165
598853
495198
586519
586429
452084
458719
]
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 (534751 , 534750 , 481667 , 618656 , 595323 , 512816 , 672498 , 622230 , 504722 , 672584 , 794768 , 768334 , 774886 , 543777 , 813767 , 786472 , 807420 , 544688 , 544708 , 532259 , 810935 , 788808 , 828511 , 825094 , 672469 , 401364 , 422704 , 396898 , 261001 , 593219 , 623854 , 420156 , 101894 , 382031 , 415640 , 452089 , 458196 , 672574 , 596618 , 596629 , 430146 , 17093 , 414220 , 382186 , 451953 , 454909 , 521067 , 473218 , 512799 , 668472 , 614095 , 586534 , 476810 , 452063 , 514309 , 535459 , 603724 , 493165 , 598853 , 495198 , 586519 , 586429 , 452084 , 458719 );
Copy
5
205.23 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
17093
101894
261001
382031
382186
396898
401364
414220
415640
420156
422704
430146
451953
452063
452084
452089
454909
458196
458719
473218
476810
481667
493165
495198
504722
512799
512816
514309
521067
532259
534750
534751
535459
543777
544688
544708
586429
586519
586534
593219
595323
596618
596629
598853
603724
614095
618656
622230
623854
668472
672469
672498
672574
672584
768334
774886
786472
788808
794768
807420
810935
813767
825094
828511
]
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 (17093 , 101894 , 261001 , 382031 , 382186 , 396898 , 401364 , 414220 , 415640 , 420156 , 422704 , 430146 , 451953 , 452063 , 452084 , 452089 , 454909 , 458196 , 458719 , 473218 , 476810 , 481667 , 493165 , 495198 , 504722 , 512799 , 512816 , 514309 , 521067 , 532259 , 534750 , 534751 , 535459 , 543777 , 544688 , 544708 , 586429 , 586519 , 586534 , 593219 , 595323 , 596618 , 596629 , 598853 , 603724 , 614095 , 618656 , 622230 , 623854 , 668472 , 672469 , 672498 , 672574 , 672584 , 768334 , 774886 , 786472 , 788808 , 794768 , 807420 , 810935 , 813767 , 825094 , 828511 );
Copy
6
73.19 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
17093
101894
261001
382031
382186
396898
401364
414220
415640
420156
422704
430146
451953
452063
452084
452089
454909
458196
458719
473218
476810
481667
493165
495198
504722
512799
512816
514309
521067
532259
534750
534751
535459
543777
544688
544708
586429
586519
586534
593219
595323
596618
596629
598853
603724
614095
618656
622230
623854
668472
672469
672498
672574
672584
768334
774886
786472
788808
794768
807420
810935
813767
825094
828511
]
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 (17093 , 101894 , 261001 , 382031 , 382186 , 396898 , 401364 , 414220 , 415640 , 420156 , 422704 , 430146 , 451953 , 452063 , 452084 , 452089 , 454909 , 458196 , 458719 , 473218 , 476810 , 481667 , 493165 , 495198 , 504722 , 512799 , 512816 , 514309 , 521067 , 532259 , 534750 , 534751 , 535459 , 543777 , 544688 , 544708 , 586429 , 586519 , 586534 , 593219 , 595323 , 596618 , 596629 , 598853 , 603724 , 614095 , 618656 , 622230 , 623854 , 668472 , 672469 , 672498 , 672574 , 672584 , 768334 , 774886 , 786472 , 788808 , 794768 , 807420 , 810935 , 813767 , 825094 , 828511 );
Copy