@@ -537,10 +537,18 @@ def response_handler(resp: Response) -> Json:
537
537
def load (self ) -> Result [bool ]:
538
538
"""Load the collection into memory.
539
539
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
+
540
545
:return: True if collection was loaded successfully.
541
546
:rtype: bool
542
547
:raise arango.exceptions.CollectionLoadError: If operation fails.
543
548
"""
549
+ 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
550
+ warn (m , DeprecationWarning , stacklevel = 2 )
551
+
544
552
request = Request (method = "put" , endpoint = f"/_api/collection/{ self .name } /load" )
545
553
546
554
def response_handler (resp : Response ) -> bool :
@@ -553,10 +561,18 @@ def response_handler(resp: Response) -> bool:
553
561
def unload (self ) -> Result [bool ]:
554
562
"""Unload the collection from memory.
555
563
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
+
556
569
:return: True if collection was unloaded successfully.
557
570
:rtype: bool
558
571
:raise arango.exceptions.CollectionUnloadError: If operation fails.
559
572
"""
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
+
560
576
request = Request (method = "put" , endpoint = f"/_api/collection/{ self .name } /unload" )
561
577
562
578
def response_handler (resp : Response ) -> bool :
0 commit comments