You use the
macro variable SPDSIASY to choose between parallel and sequential index creation on the server tables
with more than one index. One advantage of creating multiple indexes in parallel is
speed. The speed enhancements that can be achieved with parallel indexes are not free.
Parallel indexes require significantly more disk space for working storage. The default
server setting for the SPDSIASY macro variable is set to NO, in order to avoid exhausting
the available work storage space.
However, if you have
adequate disk space to support parallel sorts, it is strongly
recommended that you override the default SPDSIASY=NO
setting and assign SPDSIASY=YES. You can substantially increase performance—indexes
that otherwise take hours to build complete much faster.
How many indexes should you create in parallel? The answer depends on several factors,
such as the number of CPUs in the
SMP configuration and available work storage space needed for index key sorting.
When managing disk space
on your server, remember that grouping INDEX CREATE statements can
minimize the number of table scans that the server performs, but it
also affects disk space consumption. There is an inverse relationship
between the table scan frequency and disk space requirements. A minimal
number of table scans requires more auxiliary disk space. A maximum
number of table scans requires less auxiliary disk space.