A method, apparatus and program storage device for determining an optimal
number of tasks during reorganization of a database system with memory
and processor constraints. The reorganization system identifies memory
constraints, identifies processing capabilities and determines 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. The identified memory and processing
capabilities identify a domain representing a set of rules applicable to
the identified memory and processing capabilities. The set of rules of
the identified domain are applied to determine an optimal number and
combination of reorganization processes that minimizes a reorganization
time.