If you want to do all that in a single transaction, I think your best strategy 
would be to set date-range collections as documents are ingested and use 
xdmp:collection-delete(). But you would need to have a good strategy for 
setting those collections, and if you already have 1M documents without those 
collections then you would need to use something like Corb to add them.

-- Mike

On 9 Feb 2012, at 09:02 , Pratap, Divya wrote:

> Hi,
> I am looking at deleting documents from a specific time frame from the 
> MarkLogic database. It seems like xdmp:document-delete would take too long 
> for over a million documents. Besides it would require the document URI of 
> each and every document.  Is there a better / more efficient way to delete 
> bulk documents – maybe just by specifying time frame ?
>  
> Thanks in advance
> Divya Pratap
> 
> The information contained in this communication is intended for the use
> of the designated recipients named above. If the reader of this 
> communication is not the intended recipient, you are hereby notified
> that you have received this communication in error, and that any review,
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please 
> notify The Associated Press immediately by telephone at +1-212-621-1898 
> and delete this email. Thank you.
> [IP_US_DISC]
> 
> 
> msk dccc60c6d2c3a6438f0cf467d9a4938
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to