Domino provides two utilities that perform preventative maintenance for NSFs: Updall
, and Compact
. Understanding how, when, and why to run these tasks is a critical part of basic administration.
Updall refreshes or rebuilds view and full-text indexes, purges deletion stubs, and discards unused view indexes. It is scheduled by default to run at 2:00 AM every day. While Updall can be configured to do a full rebuild of view indexes by using the -R option, this should not be required unless specific evidence of index corruption exists. In all other cases, rebuilding an already valid index simply wastes system resources that are better leveraged elsewhere. The default Updall should be sufficient in almost all cases.
Compact's two primary roles are to reorganize whitespace within a database and optionally reduce the database's file size. The latter role is determined by the use of the -b or -B switch. The lower-case variety will reorganize whitespace within the database but will not release unused space to the operating system. The advantage here is that whitespace will be available to store new documents without having to request additional disk space from the operating system, which is a performance improvement. The upper-case variety will release unused storage to the operating system, which is useful when disk space is the overriding concern. However, new documents will require additional disk allocation from the operating system, which negatively impacts performance. Any transaction-logged databases require a full backup when using the -B option, so this should also be coordinated with the backup schedule.
A typical maintenance strategy might look something like the following.
- Compact -b
- Incremental backup
- Compact -B
- Updall -X
- Full backup