MySQL Forums
Forum List  »  Partitioning

Re: Auto Partitioning using unix time
Posted by: Mikael Ronström
Date: March 09, 2006 06:44AM

Jason Lewis wrote:
> Mikael Ronstrom wrote:
> > To use the partition function PARTITION BY
> > RANGE/LIST (TO_DAYS(a_date_field))
> > will have a very good effect on the
> optimizer
> > since it will then know that it can apply
> > range optimisations.
> >
>
> Does the "date_field" have to be a mysql defined
> date data type?

It has to be of DATE or DATETIME to get the positive effects
for partition pruning.

Rgrds Mikael

Mikael Ronstrom
Senior Software Architect, MySQL AB
My blog: http://mikaelronstrom.blogspot.com

Options: ReplyQuote


Subject
Views
Written By
Posted
7405
January 17, 2006 03:14PM
3405
January 30, 2006 07:09AM
2890
January 31, 2006 08:06AM
2617
February 10, 2006 11:22PM
Re: Auto Partitioning using unix time
2640
March 09, 2006 06:44AM
2682
March 07, 2006 08:00AM


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.