MySQL Forums
Forum List  »  Partitioning

Re: Year and month partitioning
Posted by: Mattias Jonsson
Date: March 02, 2011 03:13AM

MONTH is not optimized for RANGE pruning, it will only prune on exact queries like 'WHERE dataTime = '2011-03-02 00:01:02' (or by walking max 32 steps IIRC).

Note that in 5.5 you can also use
PARTITION BY RANGE COLUMNS(dataTime)
(PARTITION p201101 VALUES LESS THAN ('2011-02-01 00:00:00'),
...)
i.e use the column directly without having to use TO_DAYS().

Options: ReplyQuote


Subject
Views
Written By
Posted
10228
March 02, 2011 02:18AM
Re: Year and month partitioning
3463
March 02, 2011 03:13AM


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.