我想知道光标是否可以自动删除,还是应该手动删除。如果不删除,会不会造成内存泄漏?
最佳答案
当您检索所有请求的文件时,它将被自动删除。来自 docs :
The cursor will automatically be destroyed on the server when 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 destroy abandoned cursors automatically after a certain server-controlled timeout to avoid resource leakage.
关于arangodb - 查询后是否需要删除 arangodb 游标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26033355/