File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1992,12 +1992,16 @@ def import_bulk(
1992
1992
IMPORTANT NOTE: this parameter may go through breaking changes
1993
1993
in the future where the return type may not be a list of result
1994
1994
objects anymore. Use it at your own risk, and avoid
1995
- depending on the return value if possible.
1995
+ depending on the return value if possible. Should not be used
1996
+ if **overwrite** is set to true.
1996
1997
:type batch_size: int
1997
1998
:return: Result of the bulk import.
1998
1999
:rtype: dict | list[dict]
1999
2000
:raise arango.exceptions.DocumentInsertError: If import fails.
2000
2001
"""
2002
+ if overwrite and batch_size :
2003
+ raise ValueError ("Cannot set **batch_size** if **overwrite** is true" )
2004
+
2001
2005
documents = [self ._ensure_key_from_id (doc ) for doc in documents ]
2002
2006
2003
2007
params : Params = {"type" : "array" , "collection" : self .name }
You can’t perform that action at this time.
0 commit comments