MySQL Forums
Forum List  »  Partitioning

Re: How to move partition files
Posted by: Adrian Chapela Cordeiro
Date: October 08, 2008 10:43AM

Yes, I am thinking about your option.

I select the data with the key of the partition but the key will be a datetime field.

I need to do:

Select * from table where date_field > 'datetime value' AND date_field < 'datetime value'.

With this I will have partition pruning but I will be selecting three partition in the pruning. Example:

p20081001 -> partition having 01-10-2008 date rows
p20081002 -> partition having 02-10-2008 date rows
p20081003 -> partition having 03-10-2008 date rows

I will perform this query to select 02-10-2008 data.

select * from table where date_field > '2008-10-01 23:59:59' AND date_field < '2008-10-03 00:00:01'

Partition pruning will select three partitions but the data will be only from one partition, p20081002.

I am thinking about the fastest process!

Options: ReplyQuote


Subject
Views
Written By
Posted
12616
March 05, 2008 03:06PM
4095
October 01, 2008 07:39PM
3570
October 05, 2008 08:39PM
Re: How to move partition files
3618
October 08, 2008 10:43AM
3570
October 08, 2008 10:45PM


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.