MySQL Forums
Forum List  »  Partitioning

Re: Partition Pruning Issue while using Day() function in Range
Posted by: Rick James
Date: September 23, 2011 09:22AM

> where (time >= '2011-09-12' and time < '2011-09-13') and sender = '918648887399';”
If that is your main WHERE clause, you would be better off getting rid of PARTITIONing and simply having
INDEX(sender, time)

If there are other reasons for PARTITIONing, please state them. DAY() would not have let you do DROP PARTITION past 28 days. TO_DAYS() does give you a way to DROP after any chosen time -- This is a strong use for PARTITION.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Partition Pruning Issue while using Day() function in Range
1856
September 23, 2011 09:22AM


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.