149.03 ms (86.00%)
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
233601
382854
391564
391910
391964
392002
402979
428110
430560
443702
445447
453242
454504
455370
457864
461722
462535
467621
473313
475095
480907
485362
486011
490418
493375
494540
495429
497049
505864
509496
512025
516055
522798
526057
527973
528944
529067
536635
536819
542933
545300
547256
548743
549784
551539
555965
556405
556847
558004
563226
566360
569659
570277
570532
571378
576367
582587
601435
635828
670198
696070
700884
701205
758028
778265
]
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 (233601 , 382854 , 391564 , 391910 , 391964 , 392002 , 402979 , 428110 , 430560 , 443702 , 445447 , 453242 , 454504 , 455370 , 457864 , 461722 , 462535 , 467621 , 473313 , 475095 , 480907 , 485362 , 486011 , 490418 , 493375 , 494540 , 495429 , 497049 , 505864 , 509496 , 512025 , 516055 , 522798 , 526057 , 527973 , 528944 , 529067 , 536635 , 536819 , 542933 , 545300 , 547256 , 548743 , 549784 , 551539 , 555965 , 556405 , 556847 , 558004 , 563226 , 566360 , 569659 , 570277 , 570532 , 571378 , 576367 , 582587 , 601435 , 635828 , 670198 , 696070 , 700884 , 701205 , 758028 , 778265 );
Copy
10.61 ms (6.12%)
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
391964
778265
526057
480907
233601
430560
571378
382854
700884
391564
454504
670198
701205
402979
475095
696070
635828
457864
529067
391910
495429
555965
758028
455370
392002
494540
566360
570532
542933
556847
512025
522798
485362
505864
547256
549784
548743
558004
563226
576367
461722
516055
536635
509496
527973
582587
445447
473313
443702
528944
536819
497049
453242
569659
467621
493375
486011
490418
462535
570277
601435
428110
551539
545300
556405
]
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 (391964 , 778265 , 526057 , 480907 , 233601 , 430560 , 571378 , 382854 , 700884 , 391564 , 454504 , 670198 , 701205 , 402979 , 475095 , 696070 , 635828 , 457864 , 529067 , 391910 , 495429 , 555965 , 758028 , 455370 , 392002 , 494540 , 566360 , 570532 , 542933 , 556847 , 512025 , 522798 , 485362 , 505864 , 547256 , 549784 , 548743 , 558004 , 563226 , 576367 , 461722 , 516055 , 536635 , 509496 , 527973 , 582587 , 445447 , 473313 , 443702 , 528944 , 536819 , 497049 , 453242 , 569659 , 467621 , 493375 , 486011 , 490418 , 462535 , 570277 , 601435 , 428110 , 551539 , 545300 , 556405 );
Copy
3.14 ms (1.81%)
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
233601
382854
391564
391910
391964
392002
402979
428110
430560
443702
445447
453242
454504
455370
457864
461722
462535
467621
473313
475095
480907
485362
486011
490418
493375
494540
495429
497049
505864
509496
512025
516055
522798
526057
527973
528944
529067
536635
536819
542933
545300
547256
548743
549784
551539
555965
556405
556847
558004
563226
566360
569659
570277
570532
571378
576367
582587
601435
635828
670198
696070
700884
701205
758028
778265
]
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 (233601 , 382854 , 391564 , 391910 , 391964 , 392002 , 402979 , 428110 , 430560 , 443702 , 445447 , 453242 , 454504 , 455370 , 457864 , 461722 , 462535 , 467621 , 473313 , 475095 , 480907 , 485362 , 486011 , 490418 , 493375 , 494540 , 495429 , 497049 , 505864 , 509496 , 512025 , 516055 , 522798 , 526057 , 527973 , 528944 , 529067 , 536635 , 536819 , 542933 , 545300 , 547256 , 548743 , 549784 , 551539 , 555965 , 556405 , 556847 , 558004 , 563226 , 566360 , 569659 , 570277 , 570532 , 571378 , 576367 , 582587 , 601435 , 635828 , 670198 , 696070 , 700884 , 701205 , 758028 , 778265 );
Copy