Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 24, 2016 13:44
Show Gist options
  • Save ableasdale/e88af44f5590ce98dd27decc35fad44c to your computer and use it in GitHub Desktop.
Save ableasdale/e88af44f5590ce98dd27decc35fad44c to your computer and use it in GitHub Desktop.
Use the host-status builtin to monitor transactions across databases
xquery version "1.0-ml";
declare namespace hs = "http://marklogic.com/xdmp/status/host";
xdmp:host-status(xdmp:host())/hs:transactions/hs:transaction/hs:database-id ! xdmp:database-name(.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment