DelayUpdates (NotesDatabase - LotusScript®)

Read-write. Indicates whether updates to a server are delayed (batched) for better performance.

Defined in

NotesDatabase

Data type

Boolean

Syntax

To get: flag = notesDatabase .DelayUpdates

To set: notesDatabase .DelayUpdates = flag

Legal values

  • True indicates that server updates are delayed; this is the default.
  • False indicates that server updates are posted immediately.

Usage

If DelayUpdates is False, the script waits for updates to the server to be posted. If you set DelayUpdates to True, server updates are cached and the script proceeds immediately. At a convenient time, the cached updates are posted. This results in better performance, but there may be a risk of losing the cached updates in the event of a crash. This method applies to Save and Remove operations on documents.

The database must be open to use this property.

Example