Don't spawn single document deletes. Rather make batches of about 100 docs, that works most efficiently. Use cts:uris to find document uri's, and use a FLWOR to calculate batches, and spawn them..
Kind regards, Geert > -----Oorspronkelijk bericht----- > Van: [email protected] [mailto:general- > [email protected]] Namens Tim > Verzonden: woensdag 30 januari 2013 14:13 > Aan: MarkLogic Developer Discussion > Onderwerp: Re: [MarkLogic Dev General] Batch collection deletes is "slow" > > 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 _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
