Commits data buffers to disk.

Syntax

<oRef>.flush( )

<oRef>

The rowset you want to write to disk.

Property of

Rowset

Description

When a row is saved, the changes are written to the rowset data buffer in memory. This buffer is written to disk only as needed; for example, before another block of rows are read into the buffer. This eliminates redundant disk writes that would slow your application.

flush( ) explicitly writes the rowset’s data buffers to disk. Note that if a disk cache is active, the buffer is written to the disk cache; the cache decides when to actually write the data onto the physical disk.

refresh( ) is similar to flush( ) because in purging cached rows, refresh( ) writes any rows that have been changed but not yet committed to disk. flush( ) writes the rows, but does not purge the data buffer; the rows are still cached.