Incremental Reorganization

Adaptive Server 15.7 SP100 includes a new parameter—defrag—for the reorg command, which lets you schedule and resume reorganization, also allowing concurrent reads or writes on the data being reorganized.

reorg defrag locks each row or page, as per the locking scheme of the object, and begins and commits a transaction for every data chunk processed. The data reorganization space requirement does not exceed the size of an allocation unit (256 data pages). Index updates for the reorganized data do not consume extra space. For every data partition undergoing incremental reorganization, a row is stored in sysattributes.