MySQL Forums
Forum List  »  Partitioning

Re: Accessing more partitions than needed
Posted by: Mattias Jonsson
Date: July 19, 2012 05:23AM

This is a known 'gotcha' and is due to the fact that to_days() will return NULL for non-valid dates (like 2012-04-31) so it always need to search the first partition (where all NULL values are stored). (See bug#49754).

I would suggest you to try 'PARTITION BY RANGE COLUMNS (cdate)' (in MySQL 5.5) instead.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Accessing more partitions than needed
1227
July 19, 2012 05:23AM
1300
August 02, 2012 12:18AM
1195
August 02, 2012 02:44AM


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.