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

Written By
Re: Accessing more partitions than needed
July 19, 2012 05:23AM
August 02, 2012 12:18AM
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.