Do I need to remove the arangodb cursor after a query?

I want to know if it is possible to delete the cursor automatically or manually delete it. If I don't delete it, is it causing a memory leak?

+3


source to share


1 answer


It will be automatically deleted upon receipt of all requested documents. From the docs :



The cursor will be automatically destroyed on the server if the client has retrieved all documents from it. The client can also explicitly destroy the cursor at any earlier time using an HTTP DELETE request. The cursor ID must be included as part of the URL.

Note: The server will also automatically destroy abandoned cursors after a certain server-controlled timeout to avoid resource leakage.

+5


source







All Articles