92.76 ms (57.16%)
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
403162
409774
418873
421323
430336
439226
439912
442358
444692
445681
446545
453875
454120
456427
457781
462535
467571
468433
471364
472750
476108
476797
486792
488728
492041
495835
497560
508523
508757
516350
516375
517869
520448
520954
521985
523183
523306
526224
526948
534204
542049
542062
546669
552120
562269
574426
574776
575509
581112
590505
590623
590651
591312
597240
618596
621658
623380
634495
638326
643523
675891
679038
679562
691899
701010
768739
775819
814784
815490
827943
]
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 (403162 , 409774 , 418873 , 421323 , 430336 , 439226 , 439912 , 442358 , 444692 , 445681 , 446545 , 453875 , 454120 , 456427 , 457781 , 462535 , 467571 , 468433 , 471364 , 472750 , 476108 , 476797 , 486792 , 488728 , 492041 , 495835 , 497560 , 508523 , 508757 , 516350 , 516375 , 517869 , 520448 , 520954 , 521985 , 523183 , 523306 , 526224 , 526948 , 534204 , 542049 , 542062 , 546669 , 552120 , 562269 , 574426 , 574776 , 575509 , 581112 , 590505 , 590623 , 590651 , 591312 , 597240 , 618596 , 621658 , 623380 , 634495 , 638326 , 643523 , 675891 , 679038 , 679562 , 691899 , 701010 , 768739 , 775819 , 814784 , 815490 , 827943 );
Copy
11.79 ms (7.26%)
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
679562
516350
454120
590505
467571
403162
675891
590623
526224
575509
679038
775819
439226
453875
430336
523306
814784
574426
638326
815490
497560
492041
421323
521985
445681
495835
517869
574776
418873
446545
552120
456427
444692
457781
621658
442358
562269
643523
439912
534204
618596
471364
581112
526948
701010
591312
468433
476108
486792
516375
488728
827943
520448
546669
462535
623380
634495
476797
590651
768739
523183
508523
597240
691899
472750
508757
409774
542062
542049
520954
]
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 (679562 , 516350 , 454120 , 590505 , 467571 , 403162 , 675891 , 590623 , 526224 , 575509 , 679038 , 775819 , 439226 , 453875 , 430336 , 523306 , 814784 , 574426 , 638326 , 815490 , 497560 , 492041 , 421323 , 521985 , 445681 , 495835 , 517869 , 574776 , 418873 , 446545 , 552120 , 456427 , 444692 , 457781 , 621658 , 442358 , 562269 , 643523 , 439912 , 534204 , 618596 , 471364 , 581112 , 526948 , 701010 , 591312 , 468433 , 476108 , 486792 , 516375 , 488728 , 827943 , 520448 , 546669 , 462535 , 623380 , 634495 , 476797 , 590651 , 768739 , 523183 , 508523 , 597240 , 691899 , 472750 , 508757 , 409774 , 542062 , 542049 , 520954 );
Copy
2.29 ms (1.41%)
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
403162
409774
418873
421323
430336
439226
439912
442358
444692
445681
446545
453875
454120
456427
457781
462535
467571
468433
471364
472750
476108
476797
486792
488728
492041
495835
497560
508523
508757
516350
516375
517869
520448
520954
521985
523183
523306
526224
526948
534204
542049
542062
546669
552120
562269
574426
574776
575509
581112
590505
590623
590651
591312
597240
618596
621658
623380
634495
638326
643523
675891
679038
679562
691899
701010
768739
775819
814784
815490
827943
]
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 (403162 , 409774 , 418873 , 421323 , 430336 , 439226 , 439912 , 442358 , 444692 , 445681 , 446545 , 453875 , 454120 , 456427 , 457781 , 462535 , 467571 , 468433 , 471364 , 472750 , 476108 , 476797 , 486792 , 488728 , 492041 , 495835 , 497560 , 508523 , 508757 , 516350 , 516375 , 517869 , 520448 , 520954 , 521985 , 523183 , 523306 , 526224 , 526948 , 534204 , 542049 , 542062 , 546669 , 552120 , 562269 , 574426 , 574776 , 575509 , 581112 , 590505 , 590623 , 590651 , 591312 , 597240 , 618596 , 621658 , 623380 , 634495 , 638326 , 643523 , 675891 , 679038 , 679562 , 691899 , 701010 , 768739 , 775819 , 814784 , 815490 , 827943 );
Copy