Skip to content

Commit

Permalink
make subscription data calls more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
matiascognite committed Dec 4, 2023
1 parent 6529464 commit e335717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cognite/client/_api/datapoints_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def iterate_data(
"externalId": external_id,
"partitions": [p.dump(camel_case=True) for p in current_partitions],
"limit": limit,
"timeoutSeconds": 5, # keep the request open until data is available, up to 5 seconds
}
if start is not None:
body["initializeCursors"] = start
Expand Down

0 comments on commit e335717

Please sign in to comment.