Zoomed Image

AMSX Scripting Language - Command : commitsleepmode

Summary

Configure automatic commit-and-sleep behaviour for long-running transactions

Description

Tells the database connection to automatically commit and briefly pause after writing a given number of records. This prevents lock escalation during large batch writes. Both the sleep interval and the record frequency must be integers.

Parameters

ParameterDescription
cmdMilliseconds to sleep
Argument 0How many records to write between sleeps

Syntax


CommitSleepMode "Milliseconds to sleep", "How many records to write between sleeps"

Return to the AMSX Command Reference