Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created March 21, 2013 16:49
Show Gist options
  • Save ableasdale/5214571 to your computer and use it in GitHub Desktop.
Save ableasdale/5214571 to your computer and use it in GitHub Desktop.
Fill the source database with sample content to test the process
(:::::::::::::: Step two - create content in source-db :::::::::::::::)
xquery version "1.0-ml";
(: run against source-db to fill the source forest with 200K docs - may take several minutes to complete :)
for $i in 1 to 200000
return xdmp:document-insert(concat($i,".xml"), element node {$i})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment