Skip to main content

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.

FunctionDescription
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 DEFINITION
sleep(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.