75.12 ms (44.93%)
1
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
62175
383327
392786
400638
403404
405175
407322
409878
411942
413795
414120
414172
416072
416237
416385
416982
420132
420276
426653
428117
428276
433261
439819
442831
445582
445792
446545
446736
448368
448703
450224
450775
452194
452195
453550
454191
459148
459827
461025
466494
467981
468063
483357
483359
483377
484977
485928
485940
486792
488310
491871
496329
505693
513357
515252
519184
519933
527006
607113
662896
677970
699025
788132
]
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 (62175 , 383327 , 392786 , 400638 , 403404 , 405175 , 407322 , 409878 , 411942 , 413795 , 414120 , 414172 , 416072 , 416237 , 416385 , 416982 , 420132 , 420276 , 426653 , 428117 , 428276 , 433261 , 439819 , 442831 , 445582 , 445792 , 446545 , 446736 , 448368 , 448703 , 450224 , 450775 , 452194 , 452195 , 453550 , 454191 , 459148 , 459827 , 461025 , 466494 , 467981 , 468063 , 483357 , 483359 , 483377 , 484977 , 485928 , 485940 , 486792 , 488310 , 491871 , 496329 , 505693 , 513357 , 515252 , 519184 , 519933 , 527006 , 607113 , 662896 , 677970 , 699025 , 788132 );
Copy
9.91 ms (5.93%)
1
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
485928
383327
483357
445582
416385
454191
607113
466494
407322
403404
452194
496329
414120
409878
62175
448703
416237
413795
459148
483377
411942
400638
468063
392786
428117
414172
420276
448368
405175
420132
442831
453550
788132
445792
513357
483359
662896
416072
446545
485940
433261
505693
484977
450224
452195
519184
699025
426653
527006
486792
459827
446736
428276
461025
491871
488310
416982
450775
515252
439819
677970
467981
519933
]
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 (485928 , 383327 , 483357 , 445582 , 416385 , 454191 , 607113 , 466494 , 407322 , 403404 , 452194 , 496329 , 414120 , 409878 , 62175 , 448703 , 416237 , 413795 , 459148 , 483377 , 411942 , 400638 , 468063 , 392786 , 428117 , 414172 , 420276 , 448368 , 405175 , 420132 , 442831 , 453550 , 788132 , 445792 , 513357 , 483359 , 662896 , 416072 , 446545 , 485940 , 433261 , 505693 , 484977 , 450224 , 452195 , 519184 , 699025 , 426653 , 527006 , 486792 , 459827 , 446736 , 428276 , 461025 , 491871 , 488310 , 416982 , 450775 , 515252 , 439819 , 677970 , 467981 , 519933 );
Copy
2.28 ms (1.37%)
1
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
62175
383327
392786
400638
403404
405175
407322
409878
411942
413795
414120
414172
416072
416237
416385
416982
420132
420276
426653
428117
428276
433261
439819
442831
445582
445792
446545
446736
448368
448703
450224
450775
452194
452195
453550
454191
459148
459827
461025
466494
467981
468063
483357
483359
483377
484977
485928
485940
486792
488310
491871
496329
505693
513357
515252
519184
519933
527006
607113
662896
677970
699025
788132
]
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 (62175 , 383327 , 392786 , 400638 , 403404 , 405175 , 407322 , 409878 , 411942 , 413795 , 414120 , 414172 , 416072 , 416237 , 416385 , 416982 , 420132 , 420276 , 426653 , 428117 , 428276 , 433261 , 439819 , 442831 , 445582 , 445792 , 446545 , 446736 , 448368 , 448703 , 450224 , 450775 , 452194 , 452195 , 453550 , 454191 , 459148 , 459827 , 461025 , 466494 , 467981 , 468063 , 483357 , 483359 , 483377 , 484977 , 485928 , 485940 , 486792 , 488310 , 491871 , 496329 , 505693 , 513357 , 515252 , 519184 , 519933 , 527006 , 607113 , 662896 , 677970 , 699025 , 788132 );
Copy