Loading TOC...

MarkLogic 9 Product Documentation
temporal:get-lsqt

temporal:get-lsqt(
   $temporal-collection as xs:string
) as xs:dateTime

Summary

This function returns the Last Stable Query Time (LSQT) for the collection at current moment. Should read lock if it is in update.

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 Name of temporal collection to get LSQt on

Example

xquery version "1.0-ml"; 
 
import module namespace temporal = "http://marklogic.com/xdmp/temporal" 
      at "/MarkLogic/temporal.xqy";

temporal:get-lsqt("temporal")

(: Returns the Last Stable Query Time for the "temporal" collection. :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.