You can use xdmp:spawn to kick off deletions of one document at a time, but be careful not to overflow the task server queue.
Tim M. On Jan 30, 2013, at 4:56 AM, Vedavalli Radhika <[email protected]> wrote: > I want to delete millions of records from ML. > I am using xdmp:collection-delete($collection) and facing time-out > errors when trying to delete 2 million records. > This collection-delete is run via CORB. > > Are there any better solutions for performing such batch collection deletes? > > Thanks, > Radhika. > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
