<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/temporal.setLsqtAutomation.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>temporal.setLsqtAutomation</api:function-name><api:suggest>temporal.setlsqtautomation</api:suggest><api:suggest>temporal</api:suggest><api:suggest>setlsqtautomation</api:suggest><api:function-link mode="xquery" fullname="temporal:set-lsqt-automation">/apidoc/8.0/temporal:set-lsqt-automation.xml</api:function-link><api:function mode="javascript" name="setLsqtAutomation" type="builtin" lib="temporal" category="Temporal" hidden="false" bucket="MarkLogic Built-In Functions" prefix="temporal" namespace="http://marklogic.com/xdmp/temporal" fullname="temporal.setLsqtAutomation"><api:summary>
  This function sets whether Last Stable Query Time (LSQT) management is automatic.  And,
  if enabled, how often LSQT is to be advanced.
  <p xmlns="http://www.w3.org/1999/xhtml">
  For details on how to use LSQT, see  
 <a href="/guide/temporal/managing#id_75536">Last Stable Query Time (LSQT) and Application-controlled System Time</a> in the <em>Temporal Developer's Guide</em>  
  </p>  
  </api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
     The name of temporal collection
    </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="on" type="xs:boolean"><api:param-description>
     Whether automation is turned on (true).  The default is off (false).
    </api:param-description><api:param-name>on</api:param-name><api:param-type>Boolean</api:param-type></api:param><api:param name="period" type="xs:unsignedInt" optional="true"><api:param-description>
     How often LSQT is advanced, in milliseconds.
    </api:param-description><api:param-name>period</api:param-name><api:param-type>Number</api:param-type></api:param><api:param name="lag" type="xs:unsignedInt" optional="true"><api:param-description>
     How much LSQT is lagged behind the max system start time, in milliseconds.
    </api:param-description><api:param-name>lag</api:param-name><api:param-type>Number</api:param-type></api:param></api:params><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
declareUpdate();
var temporal = require("/MarkLogic/temporal.xqy");
temporal.setLsqtAutomation("temporalCollection", true, 5000);
=&gt;
(: Automtacially advance LSQT every 5000 ms :)
</pre></api:example></api:function></api:function-page>