Loading TOC...

temporal.advanceLsqt

temporal.advanceLsqt(
   $temporal-collection as String,
   $lag as String
) as Date

Summary

This function enables Last Stable Query Time (LSQT) on the named collection and advances the LSQT for the collection to the maximum system start time. When LSQT is enabled on the temporal collection, you can use the temporal:statement-set-system-time function to manually set the system start time when inserting a document into that collection.

For details on how to use LSQT, see Last Stable Query Time (LSQT) and Application-controlled System Time in the Temporal Developer's Guide

Parameters
$temporal-collection The name of the temporal collection for which to advance the LSQT.
$lag The lag to be behind max system start time

Example

declareUpdate();
var temporal = require("/MarkLogic/temporal.xqy");
temporal.advanceLsqt("temporalCollection");
=>
the time lsqt is at now
//  Advances the Last Stable Query Time for the "temporalCollection" collection
//  to the maximum system start time.   

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy