71.70 ms (66.35%)
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
538948
540656
541889
542604
544483
544587
545524
547859
549410
557991
560378
560954
561480
565239
566405
567112
567990
570258
572089
572424
572625
577358
577369
577385
581329
581350
581382
587813
592462
593878
600069
615737
615748
619406
621683
621687
621999
629955
630797
631261
644379
649081
649082
649138
650603
670770
681182
681703
682839
683567
692103
692455
692480
702061
705878
716071
716746
719097
719746
722452
723480
730301
733299
744596
747609
789659
790827
802455
]
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 (538948 , 540656 , 541889 , 542604 , 544483 , 544587 , 545524 , 547859 , 549410 , 557991 , 560378 , 560954 , 561480 , 565239 , 566405 , 567112 , 567990 , 570258 , 572089 , 572424 , 572625 , 577358 , 577369 , 577385 , 581329 , 581350 , 581382 , 587813 , 592462 , 593878 , 600069 , 615737 , 615748 , 619406 , 621683 , 621687 , 621999 , 629955 , 630797 , 631261 , 644379 , 649081 , 649082 , 649138 , 650603 , 670770 , 681182 , 681703 , 682839 , 683567 , 692103 , 692455 , 692480 , 702061 , 705878 , 716071 , 716746 , 719097 , 719746 , 722452 , 723480 , 730301 , 733299 , 744596 , 747609 , 789659 , 790827 , 802455 );
Copy
14.84 ms (13.73%)
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
631261
565239
692480
719746
630797
572089
670770
722452
572424
581329
544587
733299
581382
649138
615737
747609
629955
538948
681703
692103
730301
560954
547859
716071
744596
570258
649082
681182
789659
577358
549410
566405
572625
650603
683567
719097
621999
587813
716746
790827
581350
540656
544483
705878
692455
592462
619406
644379
567990
542604
577385
560378
567112
723480
649081
682839
557991
593878
621687
577369
621683
615748
702061
802455
541889
600069
545524
561480
]
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 (631261 , 565239 , 692480 , 719746 , 630797 , 572089 , 670770 , 722452 , 572424 , 581329 , 544587 , 733299 , 581382 , 649138 , 615737 , 747609 , 629955 , 538948 , 681703 , 692103 , 730301 , 560954 , 547859 , 716071 , 744596 , 570258 , 649082 , 681182 , 789659 , 577358 , 549410 , 566405 , 572625 , 650603 , 683567 , 719097 , 621999 , 587813 , 716746 , 790827 , 581350 , 540656 , 544483 , 705878 , 692455 , 592462 , 619406 , 644379 , 567990 , 542604 , 577385 , 560378 , 567112 , 723480 , 649081 , 682839 , 557991 , 593878 , 621687 , 577369 , 621683 , 615748 , 702061 , 802455 , 541889 , 600069 , 545524 , 561480 );
Copy
1.93 ms (1.79%)
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
538948
540656
541889
542604
544483
544587
545524
547859
549410
557991
560378
560954
561480
565239
566405
567112
567990
570258
572089
572424
572625
577358
577369
577385
581329
581350
581382
587813
592462
593878
600069
615737
615748
619406
621683
621687
621999
629955
630797
631261
644379
649081
649082
649138
650603
670770
681182
681703
682839
683567
692103
692455
692480
702061
705878
716071
716746
719097
719746
722452
723480
730301
733299
744596
747609
789659
790827
802455
]
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 (538948 , 540656 , 541889 , 542604 , 544483 , 544587 , 545524 , 547859 , 549410 , 557991 , 560378 , 560954 , 561480 , 565239 , 566405 , 567112 , 567990 , 570258 , 572089 , 572424 , 572625 , 577358 , 577369 , 577385 , 581329 , 581350 , 581382 , 587813 , 592462 , 593878 , 600069 , 615737 , 615748 , 619406 , 621683 , 621687 , 621999 , 629955 , 630797 , 631261 , 644379 , 649081 , 649082 , 649138 , 650603 , 670770 , 681182 , 681703 , 682839 , 683567 , 692103 , 692455 , 692480 , 702061 , 705878 , 716071 , 716746 , 719097 , 719746 , 722452 , 723480 , 730301 , 733299 , 744596 , 747609 , 789659 , 790827 , 802455 );
Copy