Personal tools
You are here: Home DB2 How To's When to REORG a table on DB2
Navigation
Log in


Forgot your password?
 
Document Actions

When to REORG a table on DB2

Do you know when you have to reorg your table ?

Consider the following factors, which might indicate that you should reorganize a table:

 

  • A high volume of insert, update, and delete activity on tables accessed by queries. If many rows are inserted, there may not be enough free space to keep them in the clustered sequence. If many rows are deleted, the table will still have the space allocated and a REORG can free the unnecessary space.
  • Significant changes in the performance of queries that use an index with a high cluster ratio. Some applications access groups of rows using the clustered index and may not perform well if the table becomes unclustered.
  • Executing RUNSTATS to refresh statistical information does not improve performance.
  •    In some cases, a RUNSTATS Utility can collect the current statistics and resolve performance problems. If a table has become unclustered or if it contains a large amount of free space, the REORG Utility may be needed to improve access efficiency.
  • The REORGCHK command indicates a need to reorganize your table.
  • If Row compression is being implemented for a table, the REORG Utility can be used to build the compression dictionary and compress the data rows.

 

Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls