305.84 ms (88.44%)
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
391923
398949
398972
401657
423968
423971
456312
458974
459469
459471
459472
459897
459959
463152
463973
466346
466992
470041
470410
474923
476015
476619
478381
482952
485400
485947
491436
493020
495040
503483
506075
509643
509842
511086
520227
526747
544978
554488
555055
562423
567063
578169
579510
590418
620330
641807
661536
706889
731010
731034
732725
741700
741750
742636
743658
745354
745952
746733
754063
757547
778563
781909
781925
796797
802291
810136
811702
824293
]
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 (391923 , 398949 , 398972 , 401657 , 423968 , 423971 , 456312 , 458974 , 459469 , 459471 , 459472 , 459897 , 459959 , 463152 , 463973 , 466346 , 466992 , 470041 , 470410 , 474923 , 476015 , 476619 , 478381 , 482952 , 485400 , 485947 , 491436 , 493020 , 495040 , 503483 , 506075 , 509643 , 509842 , 511086 , 520227 , 526747 , 544978 , 554488 , 555055 , 562423 , 567063 , 578169 , 579510 , 590418 , 620330 , 641807 , 661536 , 706889 , 731010 , 731034 , 732725 , 741700 , 741750 , 742636 , 743658 , 745354 , 745952 , 746733 , 754063 , 757547 , 778563 , 781909 , 781925 , 796797 , 802291 , 810136 , 811702 , 824293 );
Copy
16.05 ms (4.64%)
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
731010
778563
746733
810136
743658
811702
620330
731034
824293
544978
754063
742636
423968
526747
732725
757547
470410
495040
503483
781909
391923
466346
398972
466992
485947
661536
741750
745354
741700
745952
493020
459472
554488
423971
459959
579510
706889
796797
567063
520227
506075
578169
802291
781925
459469
459897
485400
459471
478381
482952
398949
641807
401657
456312
509643
470041
463152
511086
555055
562423
476619
590418
458974
509842
463973
474923
476015
491436
]
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 (731010 , 778563 , 746733 , 810136 , 743658 , 811702 , 620330 , 731034 , 824293 , 544978 , 754063 , 742636 , 423968 , 526747 , 732725 , 757547 , 470410 , 495040 , 503483 , 781909 , 391923 , 466346 , 398972 , 466992 , 485947 , 661536 , 741750 , 745354 , 741700 , 745952 , 493020 , 459472 , 554488 , 423971 , 459959 , 579510 , 706889 , 796797 , 567063 , 520227 , 506075 , 578169 , 802291 , 781925 , 459469 , 459897 , 485400 , 459471 , 478381 , 482952 , 398949 , 641807 , 401657 , 456312 , 509643 , 470041 , 463152 , 511086 , 555055 , 562423 , 476619 , 590418 , 458974 , 509842 , 463973 , 474923 , 476015 , 491436 );
Copy
2.27 ms (0.66%)
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
391923
398949
398972
401657
423968
423971
456312
458974
459469
459471
459472
459897
459959
463152
463973
466346
466992
470041
470410
474923
476015
476619
478381
482952
485400
485947
491436
493020
495040
503483
506075
509643
509842
511086
520227
526747
544978
554488
555055
562423
567063
578169
579510
590418
620330
641807
661536
706889
731010
731034
732725
741700
741750
742636
743658
745354
745952
746733
754063
757547
778563
781909
781925
796797
802291
810136
811702
824293
]
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 (391923 , 398949 , 398972 , 401657 , 423968 , 423971 , 456312 , 458974 , 459469 , 459471 , 459472 , 459897 , 459959 , 463152 , 463973 , 466346 , 466992 , 470041 , 470410 , 474923 , 476015 , 476619 , 478381 , 482952 , 485400 , 485947 , 491436 , 493020 , 495040 , 503483 , 506075 , 509643 , 509842 , 511086 , 520227 , 526747 , 544978 , 554488 , 555055 , 562423 , 567063 , 578169 , 579510 , 590418 , 620330 , 641807 , 661536 , 706889 , 731010 , 731034 , 732725 , 741700 , 741750 , 742636 , 743658 , 745354 , 745952 , 746733 , 754063 , 757547 , 778563 , 781909 , 781925 , 796797 , 802291 , 810136 , 811702 , 824293 );
Copy