REORG replacing the nz_groom script
There are no multiple stored versions of data on tables in Db2, so only the fragments of tables are reclaimed.
After many changes to table data, a table and its indexes can become fragmented. Logically sequential data might be found on nonsequential pages, forcing additional read operations by the database manager to access data. The automatic reorganization process determines the need for table or index reorganization. It periodically evaluates tables and indexes that had their statistics updated to see whether reorganization is required, and schedules such operations whenever they are necessary. Then it reorganizes tables and indexes to improve access performance and reclaim fragmented space. The reorganization of tables/indexes is completely automatic in dashDB. No user actions are required.