Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Index & Constraint
An example on my understanding of Reverse Key Indices:
Say you have a table EMP with a column EMPNO, and an index on this field.This number is incremented sequentially for every new employee that joins in. And as employees retire, say, the records are deleted. This would generally mean deletion of records, with lower employee numbers. And subsequent deletion of indices. As such, deletions from the index are likely to be concentrated on a small set of leaf blocks towards the beginning of the index. A reverse key index, which reverses the bytes for the column value, could help in uniformly dividing the deletions across various branches of the index, and avoid a skewed index.
Raj
One attachment (0k) "Jamadagni, Rajendra" To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> <Rajendra.Jamadagni cc: @espn.com> Subject: RE: Index & Constraint Sent by: root_at_fatcity.com June 07, 2002 04:33 PM Please respond to ORACLE-L
No, don't use reverse index for FKs, on certain versions they caused havoc by allowing parent key to be deleted (Metastink has an alert on this one). Reverse indexes are preferred in OPS environment AFAIK.
Raj
Rajendra Jamadagni MIS, ESPN Inc.Rajendra dot Jamadagni at ESPN dot com
QOTD: Any clod can have facts, but having an opinion is an art!
(See attached file: InterScan_Disclaimer.txt)
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Rajesh.Rao_at_jpmchase.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Fri Jun 07 2002 - 16:43:50 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
- application/octet-stream attachment: InterScan_Disclaimer.txt
![]() |
![]() |