Skip to Content
Oracle Parallel Processing
book

Oracle Parallel Processing

by Tushar Mahapatra, Sanjay Mishra
August 2000
Intermediate to advanced
288 pages
7h 50m
English
O'Reilly Media, Inc.
Content preview from Oracle Parallel Processing

Using Reverse Key Indexes

Reverse key indexes are a new feature of Oracle8. With reverse key indexes, the byte string for each column in an index is reversed. Consider a two-column index on last name and first name. The following two lines illustrate the difference between a normal index and a reverse key index:

Mahapatra,Tushar      (normal index)
artapahaM,rahsuT      (reverse key index)

This key reversal results in an improved distribution of data across the leaf nodes of the index tree as compared to what you get using the standard indexing method. That’s the upside. The downside is that you can’t perform range scans using reverse key indexes.

Reverse key indexes can improve OPS performance by reducing the occurrence of pinging on index blocks. This is especially true when records are inserted with sequentially increasing key values. Order records, with sequentially increasing order numbers, provide an example of when this might occur. When the key values of inserted records increase sequentially, all of the index inserts take place in the rightmost block of the index tree. If the inserts are performed from more than one OPS instance, that index block becomes a “hot” block and will experience a large amount of pinging. When the bytes of a sequentially increasing index column are reversed, the updates will be spread over a number of index blocks. That’s because the leading digit will no longer always be the same.

Specify the REVERSE keyword in the CREATE INDEX command to create a reverse ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle Streams 11g Data Replication

Oracle Streams 11g Data Replication

Kirtikumar Deshpande
Oracle Built-in Packages

Oracle Built-in Packages

Steven Feuerstein, Charles Dye, John Beresniewicz
Optimizing Oracle Performance

Optimizing Oracle Performance

Cary Millsap, Jeff Holt

Publisher Resources

ISBN: 156592701XCatalog PageErrata