Last active
November 24, 2015 18:34
-
-
Save ableasdale/01d5752a8884301fb4ce to your computer and use it in GitHub Desktop.
Set "expunge locks" to "none" for a given database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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