Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created March 21, 2013 18:15
Show Gist options
  • Save ableasdale/5215319 to your computer and use it in GitHub Desktop.
Save ableasdale/5215319 to your computer and use it in GitHub Desktop.
Example usage for the task rebalancer
xdmp:spawn(
"rebalance-evacuate-forest.xqy",
(
xs:QName('FOREST'), xdmp:forest('%SOURCE FOREST%'),
xs:QName('INDEX'), -1,
xs:QName('LIMIT'), 0,
xs:QName('RESPAWN'), true()
),
<options xmlns="xdmp:eval">
<database>{ xdmp:database("%DATABASE NAME%") }</database>
<root>%FILESYSTEM PATH%</root>
<time-limit>3600</time-limit>
</options>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment