Pratap,

CoRB is a great utility for any bulk operation, including bulk deletes. You 
would create a query that returns the URIs of documents to be deleted, 
typically by using cts:uris() with a query parameter, and another query that 
deletes one document given the URI. It will run multi-threaded and efficiently 
for as long as the delete takes.

Efficient deletes can be done in a single transaction if they are in one 
collection or directory, but there is no special way to delete items from a 
date range.

More details are at: http://developer.marklogic.com/code/corb.

Yours,
Damon

From: [email protected] 
[mailto:[email protected]] On Behalf Of Pratap, Divya
Sent: Thursday, February 09, 2012 12:02 PM
To: [email protected]
Subject: [MarkLogic Dev General] Deleting documents in MarkLogic

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

Reply via email to