MySQL Forums
Forum List  »  Partitioning

Re: Query to a partitioned table using all partitions
Posted by: Rick James
Date: November 19, 2016 03:42PM

I suspect it is "not a bug" because any range of days would be complex to work with in BY RANGE(DAY(...)) -- it might wrap the list of partitions, it might include all partitions if, for example, you say
WHERE date BETWEEN NOW() - INTERVAL 44 DAY AND NOW()

BY RANGE(TO_DAYS(...)), instead always produces a simple range of partitions.

You could counter-argue that that was being lazy; maybe you would be right. Since there are dozens (hundreds?) of different cases that it fails to handle as a human might desire, I suspect it was a deliberate simplification.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Query to a partitioned table using all partitions
229
November 19, 2016 03:42PM


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.