Skip to content

Commit 8f01520

Browse files
committed
Deprecating load method
1 parent 0366a1e commit 8f01520

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arango/collection.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,19 @@ def response_handler(resp: Response) -> Json:
537537
def load(self) -> Result[bool]:
538538
"""Load the collection into memory.
539539
540+
.. note::
541+
The load function is deprecated from version 3.8.0 onwards and is a
542+
no-op from version 3.9.0 onwards. It should no longer be used, as it
543+
may be removed in a future version of ArangoDB.
544+
540545
:return: True if collection was loaded successfully.
541546
:rtype: bool
542547
:raise arango.exceptions.CollectionLoadError: If operation fails.
543548
"""
549+
550+
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
551+
warn(m, DeprecationWarning, stacklevel=2)
552+
544553
request = Request(method="put", endpoint=f"/_api/collection/{self.name}/load")
545554

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

0 commit comments

Comments
 (0)