Skip to content

Commit 48c3306

Browse files
committed
Deprecating unload method
1 parent 8f01520 commit 48c3306

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

arango/collection.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ def load(self) -> Result[bool]:
546546
:rtype: bool
547547
:raise arango.exceptions.CollectionLoadError: If operation fails.
548548
"""
549-
550549
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
551550
warn(m, DeprecationWarning, stacklevel=2)
552551

@@ -562,10 +561,18 @@ def response_handler(resp: Response) -> bool:
562561
def unload(self) -> Result[bool]:
563562
"""Unload the collection from memory.
564563
564+
.. note::
565+
The unload function is deprecated from version 3.8.0 onwards and is a
566+
no-op from version 3.9.0 onwards. It should no longer be used, as it
567+
may be removed in a future version of ArangoDB.
568+
565569
:return: True if collection was unloaded successfully.
566570
:rtype: bool
567571
:raise arango.exceptions.CollectionUnloadError: If operation fails.
568572
"""
573+
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
574+
warn(m, DeprecationWarning, stacklevel=2)
575+
569576
request = Request(method="put", endpoint=f"/_api/collection/{self.name}/unload")
570577

571578
def response_handler(resp: Response) -> bool:

0 commit comments

Comments
 (0)