You can determine when to run REORG for indexes by using
the LEAFDISTLIMIT and REPORTONLY options.
Procedure
To determine when reorganization is needed:
- Run the REORG INDEX utility and specify the LEAFDISTLIMIT
option and the REPORTONLY option.
REORG produces
a report with one of the following return codes; but a REORG is not
performed.
- 1
- No limit met; no REORG performed or recommended.
- 2
- REORG performed or recommended.
- Optional: Alternatively, information from the
SYSINDEXPART catalog table can tell you which indexes qualify for
reorganization.