3
10.95 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
697894
736097
782437
782483
801570
495636
611523
508968
828470
716167
823951
824811
754531
387303
824230
801810
788456
458689
565913
803836
574358
760713
785595
512087
542148
526244
788577
627252
556886
755223
579594
599796
809016
785899
804417
682974
720126
752359
782449
799394
512078
497893
593188
444647
819520
542184
730523
459768
568258
586113
803838
512363
442157
443317
567561
428929
499551
687293
537824
697459
420295
518191
629819
725392
515014
497207
455081
410682
499069
406121
526252
458391
512836
564203
]
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 (697894 , 736097 , 782437 , 782483 , 801570 , 495636 , 611523 , 508968 , 828470 , 716167 , 823951 , 824811 , 754531 , 387303 , 824230 , 801810 , 788456 , 458689 , 565913 , 803836 , 574358 , 760713 , 785595 , 512087 , 542148 , 526244 , 788577 , 627252 , 556886 , 755223 , 579594 , 599796 , 809016 , 785899 , 804417 , 682974 , 720126 , 752359 , 782449 , 799394 , 512078 , 497893 , 593188 , 444647 , 819520 , 542184 , 730523 , 459768 , 568258 , 586113 , 803838 , 512363 , 442157 , 443317 , 567561 , 428929 , 499551 , 687293 , 537824 , 697459 , 420295 , 518191 , 629819 , 725392 , 515014 , 497207 , 455081 , 410682 , 499069 , 406121 , 526252 , 458391 , 512836 , 564203 );
Copy
4
2.80 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
387303
406121
410682
420295
428929
442157
443317
444647
455081
458391
458689
459768
495636
497207
497893
499069
499551
508968
512078
512087
512363
512836
515014
518191
526244
526252
537824
542148
542184
556886
564203
565913
567561
568258
574358
579594
586113
593188
599796
611523
627252
629819
682974
687293
697459
697894
716167
720126
725392
730523
736097
752359
754531
755223
760713
782437
782449
782483
785595
785899
788456
788577
799394
801570
801810
803836
803838
804417
809016
819520
823951
824230
824811
828470
]
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 (387303 , 406121 , 410682 , 420295 , 428929 , 442157 , 443317 , 444647 , 455081 , 458391 , 458689 , 459768 , 495636 , 497207 , 497893 , 499069 , 499551 , 508968 , 512078 , 512087 , 512363 , 512836 , 515014 , 518191 , 526244 , 526252 , 537824 , 542148 , 542184 , 556886 , 564203 , 565913 , 567561 , 568258 , 574358 , 579594 , 586113 , 593188 , 599796 , 611523 , 627252 , 629819 , 682974 , 687293 , 697459 , 697894 , 716167 , 720126 , 725392 , 730523 , 736097 , 752359 , 754531 , 755223 , 760713 , 782437 , 782449 , 782483 , 785595 , 785899 , 788456 , 788577 , 799394 , 801570 , 801810 , 803836 , 803838 , 804417 , 809016 , 819520 , 823951 , 824230 , 824811 , 828470 );
Copy
5
89.72 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
387303
406121
410682
420295
428929
442157
443317
444647
455081
458391
458689
459768
495636
497207
497893
499069
499551
508968
512078
512087
512363
512836
515014
518191
526244
526252
537824
542148
542184
556886
564203
565913
567561
568258
574358
579594
586113
593188
599796
611523
627252
629819
682974
687293
697459
697894
716167
720126
725392
730523
736097
752359
754531
755223
760713
782437
782449
782483
785595
785899
788456
788577
799394
801570
801810
803836
803838
804417
809016
819520
823951
824230
824811
828470
]
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 (387303 , 406121 , 410682 , 420295 , 428929 , 442157 , 443317 , 444647 , 455081 , 458391 , 458689 , 459768 , 495636 , 497207 , 497893 , 499069 , 499551 , 508968 , 512078 , 512087 , 512363 , 512836 , 515014 , 518191 , 526244 , 526252 , 537824 , 542148 , 542184 , 556886 , 564203 , 565913 , 567561 , 568258 , 574358 , 579594 , 586113 , 593188 , 599796 , 611523 , 627252 , 629819 , 682974 , 687293 , 697459 , 697894 , 716167 , 720126 , 725392 , 730523 , 736097 , 752359 , 754531 , 755223 , 760713 , 782437 , 782449 , 782483 , 785595 , 785899 , 788456 , 788577 , 799394 , 801570 , 801810 , 803836 , 803838 , 804417 , 809016 , 819520 , 823951 , 824230 , 824811 , 828470 );
Copy