[MarkLogic Dev General] Deleting documents in MarkLogic
mike at blakeley.com
Thu Feb 9 11:46:49 PST 2012
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.
On 9 Feb 2012, at 09:02 , Pratap, Divya wrote:
> 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.
> msk dccc60c6d2c3a6438f0cf467d9a4938
> General mailing list
> General at developer.marklogic.com
More information about the General