Slow performance for deleting Documents

We are experiencing a 20-40 second delay when we delete documents using a web agent written in LotusScript. We have placing time messages and can reproduce the delay while using collection.RemoveAll(True) and document.Remove(True). We monitor the server and there is no activity with disk, memory, or processor during the delay. Moreover, we are only deleting 5 documents in the case of the collection and a single document in the case of the document. The database only has ~60,000 documents too.

Does anybody know what is wrong or can explain what Domino is doing during a deletion process?

Subject: RE: Slow performance for deleting Documents

If you’re getting the documents from a view, two things:

What’s the selection formula? Are you using @Now or @Today in the selection or any column formula?

You might try setting the view.AutoUpdate property = False and see whether that helps.

Subject: RE: Slow performance for deleting Documents

Thanks - I had already tried that with no success.

I was able to solve my problem by turning off design locking on the database. Apparently, this relates.