1. A program storage device, comprising: program instructions executable by a processing device to perform operations for determining an optimal number of tasks during reorganization of a database system, the operations comprising: identifying memory constraints; identifying processing capabilities; and determining a number of reorganization processes and a combination of reorganization processes that provides a minimum reorganization time based upon the identified memory and processing constraints, further comprising using the identified memory and processing capabilities to identify a domain representing a set of rules applicable to the identified memory and processing capabilities, and applying the set of rules of the identified domain to determine an optimal number and combination of reorganization processes that minimizes a reorganization time.