BUILD.INDEX |
![]() ![]() ![]() |
The BUILD.INDEX command populates an alternate key index
Format
BUILD.INDEX filename field(s)
BUILD.INDEX filename ALL
where
The BUILD.INDEX command deletes any existing index data for the named field(s) and populates the index by processing all records currently in the file. The ALL keyword can be used to build all indices that have been created for the file.
BUILD.INDEX is best performed immediately after using CREATE.INDEX to construct the index. Once the index has been built, it will be maintained automatically whenever changes are made to the file and will be used automatically by the query processor.
The BUILD.INDEX command requires exclusive access to the file and may take some time to complete for a very large file. It is therefore best executed at quiet times.
See also: |