Sleep function
These functions can be used to introduce a delay or pause in the execution of a query or a batch of queries for a specific amount of time.
Function | Description |
---|---|
sleep() | Delays or pauses in the execution of a query or a batch of queries. |
sleep
The sleep
function delays or pauses the execution of a query or a set of statements.
API DEFINITIONsleep(duration) -> none
The following example shows this function, and its output, when used in a RETURN
statement:
RETURN sleep(1s);
RETURN sleep(500ms);
See also
Alternatively you may want to use the SLEEP statement.