Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Last active November 24, 2015 18:34
Show Gist options
  • Select an option

  • Save ableasdale/01d5752a8884301fb4ce to your computer and use it in GitHub Desktop.

Select an option

Save ableasdale/01d5752a8884301fb4ce to your computer and use it in GitHub Desktop.
Set "expunge locks" to "none" for a given database
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
(: Configure the $DATABASE variable in the line below :)
declare variable $DATABASE as xs:string := "Documents";
admin:save-configuration(admin:database-set-expunge-locks(admin:get-configuration(), xdmp:database($DATABASE), "none"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment