Skip to content

Commit

Permalink
[DAR-2463][External] Adjusted maximum number of items that can be reg…
Browse files Browse the repository at this point in the history
…istered in a single request (#857)

* Adjusted maximum number of items that can be registered in a single request

* Adjusted per-request item limit to 100

* Corrected comments

* Adjusted per-request item limit to 10
  • Loading branch information
JBWilkie authored Jul 19, 2024
1 parent 651382f commit 8dab049
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions darwin/dataset/remote_dataset_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ def register_single_slotted(
item["extract_views"] = "true"
items.append(item)

# Do not register more than 500 items in a single request
chunk_size = 500
# Do not register more than 10 items in a single request
chunk_size = 10
chunked_items = chunk_items(items, chunk_size)
print(f"Registering {len(items)} items in chunks of {chunk_size} items...")
results = {
Expand Down Expand Up @@ -810,8 +810,8 @@ def register_multi_slotted(
}
)

# Do not register more than 500 items in a single request
chunk_size = 500
# Do not register more than 10 items in a single request
chunk_size = 10
chunked_items = chunk_items(items, chunk_size)
print(f"Registering {len(items)} items in chunks of {chunk_size} items...")
results = {
Expand Down

0 comments on commit 8dab049

Please sign in to comment.