Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deprecating unload method
  • Loading branch information
apetenchea committed Jul 28, 2025
commit 48c33065e466a317d4f767560b34d334ae02a15e
9 changes: 8 additions & 1 deletion arango/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ def load(self) -> Result[bool]:
:rtype: bool
:raise arango.exceptions.CollectionLoadError: If operation fails.
"""

m = "The load function is deprecated from version 3.8.0 onwards and is a no-op from version 3.9.0 onwards." # noqa: E501
warn(m, DeprecationWarning, stacklevel=2)

Expand All @@ -562,10 +561,18 @@ def response_handler(resp: Response) -> bool:
def unload(self) -> Result[bool]:
"""Unload the collection from memory.

.. note::
The unload function is deprecated from version 3.8.0 onwards and is a
no-op from version 3.9.0 onwards. It should no longer be used, as it
may be removed in a future version of ArangoDB.

:return: True if collection was unloaded successfully.
:rtype: bool
:raise arango.exceptions.CollectionUnloadError: If operation fails.
"""
m = "The unload function is deprecated from version 3.8.0 onwards and is a no-op from version 3.9.0 onwards." # noqa: E501
warn(m, DeprecationWarning, stacklevel=2)

request = Request(method="put", endpoint=f"/_api/collection/{self.name}/unload")

def response_handler(resp: Response) -> bool:
Expand Down
Loading