Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 24, 2016 13:46
Show Gist options
  • Save ableasdale/398b08ac5db10d0d51397d9d215eb174 to your computer and use it in GitHub Desktop.
Save ableasdale/398b08ac5db10d0d51397d9d215eb174 to your computer and use it in GitHub Desktop.
Get the wallclock times for all transactions in-flight per host
xquery version "1.0-ml";
declare namespace hs = "http://marklogic.com/xdmp/status/host";
xdmp:host-status(xdmp:host())/hs:transactions/hs:transaction/hs:transaction-timestamp ! xdmp:timestamp-to-wallclock(.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment