Salesforce

How to perform On-line Index Compaction

« Go Back

Information

 
TitleHow to perform On-line Index Compaction
URL Name19829
Article Number000120382
Environment
Question/Problem Description
How to perform On-line Index Compaction
How to perform Index Compaction On-line
How to do On-line Index Compaction
How to increases space utilization of the index block
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution

In Progress Version 8.x the only way to improve an index's use of space is to rebuild the index with the off-line index rebuild utility.  

In Version 9.x there is a utility to compact index space utilization on-line.  When  the PROUTIL IDXANALYS utility indicates that space utilization of an index is reduced to 60% or less, use PROUTIL IDXCOMPACT to perform index compaction on-line.

Performing index compaction increases space utilization of the index block to the compacting percentage specified by n.

Syntax:

proutil db-name -C  idxcompact [owner-name].table-name.index-name [n]

n - Specifies the degree of index compaction. You can specify an integer >=50 and <=100.  The default value is 80, if you do not specify n, 80 is used.

The index compacting utility operates in three phases:

1) If the index is a unique index, the delete chain is scanned and the index blocks are cleaned up by removing deleted entries.

2) The non-leaf levels of the B-tree are compacted starting at the root working toward the leaf level.

3) The leaf level is compacted.

In addition to compacting an index, this utility clears dead entries left after entries have been deleted from unique indexes.

Because index compacting is performed on-line, other users can use the index simultaneously for read or write operation with no restrictions.

Index compacting only locks 1 to 3 index blocks at a time, for a short time. This allows full concurrency.
Workaround
Notes
References to Written Documentation:

Progress Database Administration Guide and Reference
Keyword Phrase
Last Modified Date9/13/2015 5:36 AM

Powered by