Reverse Key Indexes (219)
Creating a reverse key index, compared to a standard index, reverses the bytes of each
column indexed (except the rowid) while keeping the column order. Such an
arrangement can help avoid performance degradation with Real Application Clusters
where modifications to the index are concentrated on a small set of leaf blocks. By
reversing the keys of the index, the insertions become distributed across all leaf keys in
the index.
Using the reverse key arrangement eliminates the ability to run an index range
scanning query on the index. Because lexically adjacent keys are not stored next to
each other in a reverse-key index, only fetch-by-key or full-index (table) scans can be
performed.
Sometimes, using a reverse-key index can make an OLTP Real Application Clusters
application faster. For example, keeping the index of mail messages in an e-mail
application: some users keep old messages, and the index must maintain pointers to
these as well as to the most recent.
The REVERSE keyword provides a simple mechanism for creating a reverse key index.
You can specify the keyword REVERSE along with the optional index specifications in
a CREATE INDEX statement:
CREATE INDEX i ON t (a,b,c) REVERSE;
You can specify the keyword NOREVERSE to REBUILD a reverse-key index into one
that is not reverse keyed:
ALTER INDEX i REBUILD NOREVERSE;
Rebuilding a reverse-key index without the NOREVERSE keyword produces a rebuilt,
reverse-key index.
反轉索引
1. 將索引列值的每個位元組進行倒序排列(除了rowid) ,在RAC環境中可以避免由於對索引的修改集中在一小部分葉塊
上的效能下降 ,透過使索引的鍵值逆序排列,可以使插入操作分佈在索引的全部葉塊中。
2. 使用反轉索引後將無法對此索引進行索引區間掃描
3. 有些情況下,使用逆序鍵索引可以使 RAC 環境下的 OLTP 應用效率更高
4. 在建立索引時加上關鍵字 REVERSE 即建立一個反轉索引
使用ALTER INDEX
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-982963/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Reverse Key IndexesIndex
- 【優化】使用反向索引(Reverse Key Indexes)減少索引熱點塊優化索引Index
- Indexes and Keys (197)Index
- REVERSE關鍵字之REVERSE函式函式
- Rebuild IndexesRebuildIndex
- ORACLE INDEXESOracleIndex
- JavaScript reverse()JavaScript
- ABC219 覆盤
- Oracle - Tables/IndexesOracleIndex
- ORACLE -> NULL & INDEXESOracleNullIndex
- Overview of Partitioned IndexesViewIndex
- Local Partitioned IndexesIndex
- Global Nonpartitioned IndexesIndex
- Extents in Indexes (19)Index
- BUUCTF reverse 3
- 翻譯(九)——Clustered Indexes: Stairway to SQL Server Indexes Level 3IndexAISQLServer
- skip_unusable_indexesIndex
- The Secrets of Oracle Bitmap IndexesOracleIndex
- Restrictions on Create Bitmap IndexesRESTIndex
- Global Range Partitioned IndexesIndex
- Global Hash Partitioned IndexesIndex
- Maintenance of Global Partitioned IndexesAINaNIndex
- Overview of Indexes (194)ViewIndex
- Indexes and Nulls (198)IndexNull
- javascript 陣列 reverse()JavaScript陣列
- oracle reverse函式Oracle函式
- Reverse Card (Hard Version)
- hackme 【攻防世界】Reverse
- Reverse 攻防世界合集
- Codeforces Round #219 (Div. 2)
- [ABC219E] Moat 題解
- Sparse Indexes vs unique indexIndex
- SKIP_UNUSABLE_INDEXES InitializationIndex
- Choosing Composite IndexesIndex
- 建立Function-Based IndexesFunctionIndex
- How Indexes Grow and PctfreeIndex
- Bitmap Indexes and Nulls (224)IndexNull
- Partitioned Indexes on Composite PartitionsIndex