Skip to content

Commit 3be1ccd

Browse files
committed
Set ZARR_LARGE_CHUNK_THRESHOLD to 100MB
1 parent 00f4301 commit 3be1ccd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dandi/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def urls(self) -> Iterator[str]:
200200
ZARR_DELETE_BATCH_SIZE = 100
201201

202202
#: Zarr chunks above this size (bytes) are uploaded via multipart upload
203-
ZARR_LARGE_CHUNK_THRESHOLD = 5 * 1024 * 1024 * 1024 # 5 GB
203+
ZARR_LARGE_CHUNK_THRESHOLD = 100 * 1024 * 1024 # 100 MB
204204

205205
BIDS_DATASET_DESCRIPTION = "dataset_description.json"
206206

dandi/files/zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def mkzarr() -> str:
756756
for it in all_items:
757757
zcc.add_leaf(Path(it.entry_path), it.size, it.digest)
758758

759-
# Upload chunks above 5GB individually via multipart upload
759+
# Upload chunks above ZARR_LARGE_CHUNK_THRESHOLD individually via multipart upload
760760
for it in large_items:
761761
# Yield uploading status
762762
yield from _multipart_upload(

0 commit comments

Comments
 (0)