Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Partitioning opinion
Hi,
We have a table having 14 columns and contain historical data and we are
planning to implement partitioning so that we will keep only 12 months
data online and purge the old partition every month. We will be using
Range partitioning on Date column name Interv and have primary key on
(id,Interv). Data is never updated and only deleted for archiving that
we are planning to do as drop partition so for most of the time only
inserts will go against this table and few Selects. For performance of
select we have to add 2 more non-unique global indexes. So the schema
will look like:
Primary key index on (id,Interv)
Does non-prefix local indexes be Ok or we should change the order of PK
to (interv,id) to have prefix local index?
Non-unique index on 3 columns
Non-unique index on 3 columns
Should we partition these global non-unique indexes or it does not
matter since partitions will not be used by optimizer for pruning?
Thanks
--Harvinder
![]() |
![]() |