The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:property LazyWrite: boolean;

The property LazyWrite determines whether the indexes of the database are written to the disk after each adjustment of a database entry, or not. If LazyWrite is TRUE the indexes are saved on disk only when closing the database object. If LazyWrite is FALSE indexes are updated on disk every time an entry is changed.

In general, LazyWrite should be set to FALSE to ensure that the indexes on disk are always at the same state as the internal indexes. However, this slows down the build-up of databases considerably. In order to increase performance LazyWrite could be set to TRUE when adding or changing many database entries in a batch operation.

Hint: Setting LazyWrite to TRUE and back to FALSE forces a save operation of all index files.

Last Update: 2012-Okt-20