@@ -1468,6 +1468,7 @@ def insert_many(
1468
1468
overwrite_mode : Optional [str ] = None ,
1469
1469
keep_none : Optional [bool ] = None ,
1470
1470
merge : Optional [bool ] = None ,
1471
+ refill_index_caches : Optional [bool ] = None ,
1471
1472
) -> Result [Union [bool , List [Union [Json , ArangoServerError ]]]]:
1472
1473
"""Insert multiple documents.
1473
1474
@@ -1518,8 +1519,10 @@ def insert_many(
1518
1519
instead of the new one overwriting the old one. Applies only when
1519
1520
**overwrite_mode** is set to "update" (update-insert).
1520
1521
:type merge: bool | None
1521
- :return: Document metadata (e.g. document key, revision) or True if
1522
- parameter **silent** was set to True.
1522
+ :param refill_index_caches: Whether to add new entries to in-memory
1523
+ index caches if document insertions affect the edge index or
1524
+ cache-enabled persistent indexes.
1525
+ :type refill_index_caches: bool | None
1523
1526
:return: List of document metadata (e.g. document keys, revisions) and
1524
1527
any exception, or True if parameter **silent** was set to True.
1525
1528
:rtype: [dict | ArangoServerError] | bool
@@ -1543,6 +1546,10 @@ def insert_many(
1543
1546
if merge is not None :
1544
1547
params ["mergeObjects" ] = merge
1545
1548
1549
+ # New in ArangoDB 3.9.6 and 3.10.2
1550
+ if refill_index_caches is not None :
1551
+ params ["refillIndexCaches" ] = refill_index_caches
1552
+
1546
1553
request = Request (
1547
1554
method = "post" ,
1548
1555
endpoint = f"/_api/document/{ self .name } " ,
@@ -1582,6 +1589,7 @@ def update_many(
1582
1589
return_old : bool = False ,
1583
1590
sync : Optional [bool ] = None ,
1584
1591
silent : bool = False ,
1592
+ refill_index_caches : Optional [bool ] = None ,
1585
1593
) -> Result [Union [bool , List [Union [Json , ArangoServerError ]]]]:
1586
1594
"""Update multiple documents.
1587
1595
@@ -1624,6 +1632,10 @@ def update_many(
1624
1632
:param silent: If set to True, no document metadata is returned. This
1625
1633
can be used to save resources.
1626
1634
:type silent: bool
1635
+ :param refill_index_caches: Whether to add new entries to in-memory
1636
+ index caches if document operations affect the edge index or
1637
+ cache-enabled persistent indexes.
1638
+ :type refill_index_caches: bool | None
1627
1639
:return: List of document metadata (e.g. document keys, revisions) and
1628
1640
any exceptions, or True if parameter **silent** was set to True.
1629
1641
:rtype: [dict | ArangoError] | bool
@@ -1641,6 +1653,10 @@ def update_many(
1641
1653
if sync is not None :
1642
1654
params ["waitForSync" ] = sync
1643
1655
1656
+ # New in ArangoDB 3.9.6 and 3.10.2
1657
+ if refill_index_caches is not None :
1658
+ params ["refillIndexCaches" ] = refill_index_caches
1659
+
1644
1660
documents = [self ._ensure_key_in_body (doc ) for doc in documents ]
1645
1661
1646
1662
request = Request (
@@ -1753,6 +1769,7 @@ def replace_many(
1753
1769
return_old : bool = False ,
1754
1770
sync : Optional [bool ] = None ,
1755
1771
silent : bool = False ,
1772
+ refill_index_caches : Optional [bool ] = None ,
1756
1773
) -> Result [Union [bool , List [Union [Json , ArangoServerError ]]]]:
1757
1774
"""Replace multiple documents.
1758
1775
@@ -1790,6 +1807,10 @@ def replace_many(
1790
1807
:param silent: If set to True, no document metadata is returned. This
1791
1808
can be used to save resources.
1792
1809
:type silent: bool
1810
+ :param refill_index_caches: Whether to add new entries to in-memory
1811
+ index caches if document operations affect the edge index or
1812
+ cache-enabled persistent indexes.
1813
+ :type refill_index_caches: bool | None
1793
1814
:return: List of document metadata (e.g. document keys, revisions) and
1794
1815
any exceptions, or True if parameter **silent** was set to True.
1795
1816
:rtype: [dict | ArangoServerError] | bool
@@ -1805,6 +1826,10 @@ def replace_many(
1805
1826
if sync is not None :
1806
1827
params ["waitForSync" ] = sync
1807
1828
1829
+ # New in ArangoDB 3.9.6 and 3.10.2
1830
+ if refill_index_caches is not None :
1831
+ params ["refillIndexCaches" ] = refill_index_caches
1832
+
1808
1833
documents = [self ._ensure_key_in_body (doc ) for doc in documents ]
1809
1834
1810
1835
request = Request (
@@ -1901,6 +1926,7 @@ def delete_many(
1901
1926
check_rev : bool = True ,
1902
1927
sync : Optional [bool ] = None ,
1903
1928
silent : bool = False ,
1929
+ refill_index_caches : Optional [bool ] = None ,
1904
1930
) -> Result [Union [bool , List [Union [Json , ArangoServerError ]]]]:
1905
1931
"""Delete multiple documents.
1906
1932
@@ -1933,6 +1959,10 @@ def delete_many(
1933
1959
:param silent: If set to True, no document metadata is returned. This
1934
1960
can be used to save resources.
1935
1961
:type silent: bool
1962
+ :param refill_index_caches: Whether to add new entries to in-memory
1963
+ index caches if document operations affect the edge index or
1964
+ cache-enabled persistent indexes.
1965
+ :type refill_index_caches: bool | None
1936
1966
:return: List of document metadata (e.g. document keys, revisions) and
1937
1967
any exceptions, or True if parameter **silent** was set to True.
1938
1968
:rtype: [dict | ArangoServerError] | bool
@@ -1947,6 +1977,10 @@ def delete_many(
1947
1977
if sync is not None :
1948
1978
params ["waitForSync" ] = sync
1949
1979
1980
+ # New in ArangoDB 3.9.6 and 3.10.2
1981
+ if refill_index_caches is not None :
1982
+ params ["refillCaches" ] = refill_index_caches
1983
+
1950
1984
documents = [
1951
1985
self ._ensure_key_in_body (doc ) if isinstance (doc , dict ) else doc
1952
1986
for doc in documents
@@ -2229,6 +2263,7 @@ def insert(
2229
2263
overwrite_mode : Optional [str ] = None ,
2230
2264
keep_none : Optional [bool ] = None ,
2231
2265
merge : Optional [bool ] = None ,
2266
+ refill_index_caches : Optional [bool ] = None ,
2232
2267
) -> Result [Union [bool , Json ]]:
2233
2268
"""Insert a new document.
2234
2269
@@ -2263,6 +2298,10 @@ def insert(
2263
2298
instead of the new one overwriting the old one. Applies only when
2264
2299
**overwrite_mode** is set to "update" (update-insert).
2265
2300
:type merge: bool | None
2301
+ :param refill_index_caches: Whether to add new entries to in-memory
2302
+ index caches if document insertions affect the edge index or
2303
+ cache-enabled persistent indexes.
2304
+ :type refill_index_caches: bool | None
2266
2305
:return: Document metadata (e.g. document key, revision) or True if
2267
2306
parameter **silent** was set to True.
2268
2307
:rtype: bool | dict
@@ -2285,6 +2324,10 @@ def insert(
2285
2324
if merge is not None :
2286
2325
params ["mergeObjects" ] = merge
2287
2326
2327
+ # New in ArangoDB 3.9.6 and 3.10.2
2328
+ if refill_index_caches is not None :
2329
+ params ["refillIndexCaches" ] = refill_index_caches
2330
+
2288
2331
request = Request (
2289
2332
method = "post" ,
2290
2333
endpoint = f"/_api/document/{ self .name } " ,
@@ -2317,6 +2360,7 @@ def update(
2317
2360
return_old : bool = False ,
2318
2361
sync : Optional [bool ] = None ,
2319
2362
silent : bool = False ,
2363
+ refill_index_caches : Optional [bool ] = None ,
2320
2364
) -> Result [Union [bool , Json ]]:
2321
2365
"""Update a document.
2322
2366
@@ -2343,6 +2387,10 @@ def update(
2343
2387
:param silent: If set to True, no document metadata is returned. This
2344
2388
can be used to save resources.
2345
2389
:type silent: bool
2390
+ :param refill_index_caches: Whether to add new entries to in-memory
2391
+ index caches if document insertions affect the edge index or
2392
+ cache-enabled persistent indexes.
2393
+ :type refill_index_caches: bool | None
2346
2394
:return: Document metadata (e.g. document key, revision) or True if
2347
2395
parameter **silent** was set to True.
2348
2396
:rtype: bool | dict
@@ -2361,6 +2409,10 @@ def update(
2361
2409
if sync is not None :
2362
2410
params ["waitForSync" ] = sync
2363
2411
2412
+ # New in ArangoDB 3.9.6 and 3.10.2
2413
+ if refill_index_caches is not None :
2414
+ params ["refillIndexCaches" ] = refill_index_caches
2415
+
2364
2416
request = Request (
2365
2417
method = "patch" ,
2366
2418
endpoint = f"/_api/document/{ self ._extract_id (document )} " ,
@@ -2391,6 +2443,7 @@ def replace(
2391
2443
return_old : bool = False ,
2392
2444
sync : Optional [bool ] = None ,
2393
2445
silent : bool = False ,
2446
+ refill_index_caches : Optional [bool ] = None ,
2394
2447
) -> Result [Union [bool , Json ]]:
2395
2448
"""Replace a document.
2396
2449
@@ -2412,6 +2465,10 @@ def replace(
2412
2465
:param silent: If set to True, no document metadata is returned. This
2413
2466
can be used to save resources.
2414
2467
:type silent: bool
2468
+ :param refill_index_caches: Whether to add new entries to in-memory
2469
+ index caches if document insertions affect the edge index or
2470
+ cache-enabled persistent indexes.
2471
+ :type refill_index_caches: bool | None
2415
2472
:return: Document metadata (e.g. document key, revision) or True if
2416
2473
parameter **silent** was set to True.
2417
2474
:rtype: bool | dict
@@ -2428,6 +2485,10 @@ def replace(
2428
2485
if sync is not None :
2429
2486
params ["waitForSync" ] = sync
2430
2487
2488
+ # New in ArangoDB 3.9.6 and 3.10.2
2489
+ if refill_index_caches is not None :
2490
+ params ["refillIndexCaches" ] = refill_index_caches
2491
+
2431
2492
request = Request (
2432
2493
method = "put" ,
2433
2494
endpoint = f"/_api/document/{ self ._extract_id (document )} " ,
@@ -2461,6 +2522,7 @@ def delete(
2461
2522
return_old : bool = False ,
2462
2523
sync : Optional [bool ] = None ,
2463
2524
silent : bool = False ,
2525
+ refill_index_caches : Optional [bool ] = None ,
2464
2526
) -> Result [Union [bool , Json ]]:
2465
2527
"""Delete a document.
2466
2528
@@ -2485,6 +2547,10 @@ def delete(
2485
2547
:param silent: If set to True, no document metadata is returned. This
2486
2548
can be used to save resources.
2487
2549
:type silent: bool
2550
+ :param refill_index_caches: Whether to add new entries to in-memory
2551
+ index caches if document operations affect the edge index or
2552
+ cache-enabled persistent indexes.
2553
+ :type refill_index_caches: bool | None
2488
2554
:return: Document metadata (e.g. document key, revision), or True if
2489
2555
parameter **silent** was set to True, or False if document was not
2490
2556
found and **ignore_missing** was set to True (does not apply in
@@ -2504,6 +2570,10 @@ def delete(
2504
2570
if sync is not None :
2505
2571
params ["waitForSync" ] = sync
2506
2572
2573
+ # New in ArangoDB 3.9.6 and 3.10.2
2574
+ if refill_index_caches is not None :
2575
+ params ["refillIndexCaches" ] = refill_index_caches
2576
+
2507
2577
request = Request (
2508
2578
method = "delete" ,
2509
2579
endpoint = f"/_api/document/{ handle } " ,
0 commit comments