MySQL Forums
Forum List  »  Partitioning

Re: MySQL partition by range on YEAR(date) weird results
Posted by: Rick James
Date: May 15, 2014 12:01AM

Smells like a bug. http://bugs.mysql.com

What version are you using?

Were the values of advert_stats_id distinct or duplicated? Which count is correct?

Did both EXPLAINs say intersect(advertisment_id,domain_id) ?

Either of these would be more efficient than using 'intersect' (and might make the bug go away).
KEY `domain_id` (`domain_id`) --> KEY(domain_id, advertisement_id)
and/or
KEY `advertisment_id` (`advertisment_id`) --> KEY(advertisement_id, domain_id)

If you are using 5.6.5 or later, please do EXPLAIN FORMAT=JSON

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL partition by range on YEAR(date) weird results
1632
May 15, 2014 12:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.