MySQL Forums :: Partitioning :: Query to a partitioned table using all partitions


Advanced Search

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
Query to a partitioned table using all partitions 418 Raghupradeep Aravindakshan 11/06/2016 11:22PM
Re: Query to a partitioned table using all partitions 232 Rick James 11/12/2016 05:55PM
Re: Query to a partitioned table using all partitions 211 Raghupradeep Aravindakshan 11/18/2016 03:16AM
Re: Query to a partitioned table using all partitions 172 Rick James 11/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.