Re: Partitioning
Posted by: Rick James
Date: April 20, 2016 11:34PM

There is no advantage for PARTITION in the case you described.

It is not possible to have that many partitions. The actual limit is 8K; the _practical_ limit is about 50.

For your example data, you are expecting 3 rows for 'MC001', correct?

Is `id` supposed to be unique? Is some other column (or combination of columns) expected to be unique?

How big can URI be?

You are saying "lookup by a single URI" is the only only SELECT you will need to do? Then make a non-PARTITIONed table with the PRIMARY KEY _starting_ with uri. After you have answered the questions above, I can help you with the rest of the columns for the PRIMARY KEY.

The query will take on a few milliseconds 'always', even with 5 billion rows.

Options: ReplyQuote


Subject
Written By
Posted
April 19, 2016 12:29PM
Re: Partitioning
April 20, 2016 11:34PM
April 21, 2016 07:47AM
April 22, 2016 06:41PM
April 22, 2016 06:59PM
April 23, 2016 05:11PM
April 25, 2016 09:27AM
April 30, 2016 05:08PM
May 04, 2016 11:41PM
May 09, 2016 09:18AM
May 10, 2016 10:15AM
May 11, 2016 08:11AM
May 17, 2016 07:49AM
May 23, 2016 03:21PM


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.