80.07 ms (69.25%)
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
417034
419248
422307
424991
428486
437097
442857
451313
457021
460370
465142
482885
490314
500498
505550
512539
512573
519624
528506
529777
536662
550898
555443
555693
561462
578025
590599
598823
606143
608215
609756
613872
620610
621655
621737
625968
626461
642940
708689
709430
710367
715897
716268
718365
724678
741784
746445
752520
767459
772909
773761
775065
779435
785265
788720
795669
796209
796583
797668
797935
798955
804517
810919
811339
826555
]
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 (417034 , 419248 , 422307 , 424991 , 428486 , 437097 , 442857 , 451313 , 457021 , 460370 , 465142 , 482885 , 490314 , 500498 , 505550 , 512539 , 512573 , 519624 , 528506 , 529777 , 536662 , 550898 , 555443 , 555693 , 561462 , 578025 , 590599 , 598823 , 606143 , 608215 , 609756 , 613872 , 620610 , 621655 , 621737 , 625968 , 626461 , 642940 , 708689 , 709430 , 710367 , 715897 , 716268 , 718365 , 724678 , 741784 , 746445 , 752520 , 767459 , 772909 , 773761 , 775065 , 779435 , 785265 , 788720 , 795669 , 796209 , 796583 , 797668 , 797935 , 798955 , 804517 , 810919 , 811339 , 826555 );
Copy
7.89 ms (6.83%)
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
716268
715897
785265
752520
746445
826555
797668
417034
804517
512573
795669
810919
555443
718365
779435
811339
490314
555693
620610
775065
642940
419248
796583
767459
724678
773761
536662
709430
626461
772909
710367
798955
519624
457021
528506
437097
708689
606143
608215
609756
796209
788720
797935
460370
500498
578025
741784
451313
561462
428486
422307
505550
613872
598823
482885
465142
550898
529777
442857
424991
621737
625968
512539
590599
621655
]
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 (716268 , 715897 , 785265 , 752520 , 746445 , 826555 , 797668 , 417034 , 804517 , 512573 , 795669 , 810919 , 555443 , 718365 , 779435 , 811339 , 490314 , 555693 , 620610 , 775065 , 642940 , 419248 , 796583 , 767459 , 724678 , 773761 , 536662 , 709430 , 626461 , 772909 , 710367 , 798955 , 519624 , 457021 , 528506 , 437097 , 708689 , 606143 , 608215 , 609756 , 796209 , 788720 , 797935 , 460370 , 500498 , 578025 , 741784 , 451313 , 561462 , 428486 , 422307 , 505550 , 613872 , 598823 , 482885 , 465142 , 550898 , 529777 , 442857 , 424991 , 621737 , 625968 , 512539 , 590599 , 621655 );
Copy
2.96 ms (2.56%)
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
417034
419248
422307
424991
428486
437097
442857
451313
457021
460370
465142
482885
490314
500498
505550
512539
512573
519624
528506
529777
536662
550898
555443
555693
561462
578025
590599
598823
606143
608215
609756
613872
620610
621655
621737
625968
626461
642940
708689
709430
710367
715897
716268
718365
724678
741784
746445
752520
767459
772909
773761
775065
779435
785265
788720
795669
796209
796583
797668
797935
798955
804517
810919
811339
826555
]
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 (417034 , 419248 , 422307 , 424991 , 428486 , 437097 , 442857 , 451313 , 457021 , 460370 , 465142 , 482885 , 490314 , 500498 , 505550 , 512539 , 512573 , 519624 , 528506 , 529777 , 536662 , 550898 , 555443 , 555693 , 561462 , 578025 , 590599 , 598823 , 606143 , 608215 , 609756 , 613872 , 620610 , 621655 , 621737 , 625968 , 626461 , 642940 , 708689 , 709430 , 710367 , 715897 , 716268 , 718365 , 724678 , 741784 , 746445 , 752520 , 767459 , 772909 , 773761 , 775065 , 779435 , 785265 , 788720 , 795669 , 796209 , 796583 , 797668 , 797935 , 798955 , 804517 , 810919 , 811339 , 826555 );
Copy