Skip to content

Commit e1615df

Browse files
committed
MOD: Change chunk size for timeseries.get_range
1 parent 3db5d87 commit e1615df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Fixed an issue where the `Live` client would not raise an exception when reading an incompatible DBN version
1010
- Fixed an issue where sending lots of subscriptions could cause a `BufferError`
1111
- Fixed an issue where `Historical.batch.download` was slow
12+
- Fixed an issue where `Historical.timeseries.get_range` was slow
1213

1314
## 0.24.1 - 2023-12-15
1415

databento/historical/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from databento.common.system import USER_AGENT
2424

2525

26-
_32KIB = 1024 * 32 # 32_768
2726
WARNING_HEADER_FIELD: str = "X-Warning"
2827

2928

@@ -133,7 +132,7 @@ def _stream(
133132
else:
134133
writer = open(path, "x+b")
135134

136-
for chunk in response.iter_content(chunk_size=_32KIB):
135+
for chunk in response.iter_content(chunk_size=None):
137136
writer.write(chunk)
138137

139138
if path is None:

0 commit comments

Comments
 (0)