temporal.setLsqtAutomation( $temporal-collection as String, $on as Boolean, [$period as Number], [$lag as Number] ) as null
This function sets whether Last Stable Query Time (LSQT) management is automatic. And, if enabled, how often LSQT is to be advanced.
For details on how to use LSQT, see Last Stable Query Time (LSQT) and Application-controlled System Time in the Temporal Developer's Guide
|$temporal-collection||The name of temporal collection|
|$on||Whether automation is turned on (true). The default is off (false).|
|$period||How often LSQT is advanced, in milliseconds.|
|$lag||How much LSQT is lagged behind the max system start time, in milliseconds.|
declareUpdate(); var temporal = require("/MarkLogic/temporal.xqy"); temporal.setLsqtAutomation("temporalCollection", true, 5000); => (: Automtacially advance LSQT every 5000 ms :)