Skip to content

Commit d04a57b

Browse files
committed
FIX: Slow download speeds in Python client
1 parent dbeb4c1 commit d04a57b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### Bug fixes
66
- Fixed an issue where the `Live` client would not raise an exception when reading an incompatible DBN version
77
- Fixed an issue where sending lots of subscriptions could cause a `BufferError`
8+
- Fixed an issue where `Historical.batch.download` was slow
89

910
## 0.24.1 - 2023-12-15
1011

databento/historical/api/batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def _download_file(
370370

371371
logger.debug("Starting download of file %s", output_path.name)
372372
with open(output_path, mode=mode) as f:
373-
for chunk in response.iter_content():
373+
for chunk in response.iter_content(chunk_size=None):
374374
f.write(chunk)
375375
logger.debug("Download of %s completed", output_path.name)
376376

0 commit comments

Comments
 (0)