System functions that support non-block commit

The system function names — rs_set_non_blocking_commit and rs_set_non_blocking_commit_flush documented in Chapter 4, “Replication Server System Functions” have been renamed. The corrected system function names are, as follows:


rs_non_blocking_commit

Description

Requests data servers to immediately send a positive response to a COMMIT statement without waiting for transactions to be written to disk.

Usage

See also

rs_non_blocking_commit_flush


rs_non_blocking_commit_flush

Description

Sends an insert, delete, or update command to the data servers so that transactions that were sent through a connection configured with rs_ non_blocking_commit are saved to disk.

Examples

Example 1 Creates an instance of an rs_non_blocking_commit_flush function string for Adaptive Server:

create function string rs_non_blocking_commit_flush
         for sqlserver_derived_class
         output language
         ‘set delayed_commit off; begin tran; update rs_lastcommit set
         origin_time = getdate() where origin = 0; commit tran; 
         set delayed_commit on’

Example 2 Creates an instance of an rs_non_blocking_commit_flush function string for Oracle:

create function string rs_non_blocking_commit_flush
         for oracle_derived_class
         output language
         ‘alter session set commit_write = immediate; begin tran; 
         update rs_lastcommit set origin_time = getdate() where
         origin = 0; commit tran; alter session set commit_write = nowait’

Usage

See also

rs_non_blocking_commit