Modify primary key for partitioning
Hi,
I want to use range partitioning for a table. Currently, this table has a primary key based on one column (not an auto-increment, but a unique varchar). In order to create the partitioning, I must add the column (datetime) I want to partition on, to the primary key. Therefore, the primary key will be less restrictive (I can have twice the same varchar if the datetime is different). A solution is to enforce a unique key on the varchar column, so that I can't get twice the same value. I'm just wondering if it's a good idea to have a column once in the primary key plus an unique index on it (mainly for the performance). What do you think of this design ? Do you have any better suggestion ?
Regards,
Edited 1 time(s). Last edit at 08/11/2012 04:22AM by Aurelien PANIZZA.
Subject
Views
Written By
Posted
Modify primary key for partitioning
3117
August 10, 2012 10:29AM
1741
August 18, 2012 09:39PM
2021
August 20, 2012 06:33AM
1772
August 22, 2012 10:16AM
1859
August 23, 2012 09:16AM
1742
August 23, 2012 10:42AM
1743
August 28, 2012 10:14AM
1738
August 30, 2012 10:26PM
2183
August 31, 2012 03:05AM
1752
August 31, 2012 03:38AM
1696
August 31, 2012 06:48AM
1779
August 31, 2012 09:39AM
1670
September 04, 2012 01:02AM
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.