NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
P-6
Specifying Configuration for Parallel Index Loading
Scratch file—By default, the sort process determines a volume for the scratch file.
Record generators do not have scratch files.
Number of records (sort scratch file size)—SQL estimates the number of records
that each sort process reads as three times the estimated total number of records in
the base table divided by the number of partitions in the index:
Number of Records
3 * --------------------
Number of Partitions
SQL estimates the number of records in the base table by dividing the file size by
the record length. The estimate of the number of records is used by the sort process
to calculate the scratch file size. For more information on the scratch file size, see
the FastSort Manual.
Swap file—The swap file for a sort process defaults to the same volume as the
scratch volume if the scratch volume is local. If the scratch volume is not local, the
swap file defaults to $SYSTEM. The swap file for a record generator process is the
volume of the partition being read if the partition is local. If the partition is not local,
the swap volume is the default swap volume from the =_DEFAULTS DEFINE.
Specifying Configuration for Parallel Index Loading
The CONFIG option allows you to specify an EDIT file that contains a description of a
default configuration or an explicit configuration for both record generators and sort
processes.
The configuration file can contain two types of configuration statements: comments and
CREATEINDEX statements. Keywords in the configuration file can be in uppercase,
lowercase, or mixed-case letters.
The COMMENT statement includes comments in the file. SQL ignores all lines that
begin with the word COMMENT or the characters ==. The syntax is as follows:
With the CREATEINDEX option you can specify the following:
Default priority for the record generators and the sort processes (PRI)
Default object files for the record generators and the sort processes (PROGRAM)
Default number of records (NUMRECS)
Note. If no configuration information is present, all record generators that read remote
partitions swap to the same volume, and all sort processes that write to remote partitions
swap to $SYSTEM. Multiple processes swapping to the same volume might cause disk
space and contention problems on that volume so you might want to specify a
configuration for parallel index loading.
{ COMMENT comment-text }
{ == comment-text }