I have a scenario in which most of the documents I want to delete are in a collection called "expired". I donβt want to overload my servers by running a lengthy process that will iterate over documents and delete them one by one. I would rather do them in batch size using document-delete.
So my question is: how does xdmp: collection-delete work?
Does he scan documents and delete them?
or
Does it do something like DROP Table in SQL and its "instantaneous"?
I want to know what the background process is for xdmp: collection-delete. I wonder if anyone can draw on the flow of how this function processes the document for deletion, as I want to understand the process in more detail than just an overview of what it does.
source share