This repository was archived by the owner on Oct 29, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork524
Commitc903d73
authored
Fix chunked query to return chunk resultsets (#753)
When querying large data sets, it's vital to get a chunked responses tomanage memory usage. Wrapping the query response in a generator andstreaming the request provides the desired result.It also fixes `InfluxDBClient.query()` behavior for chunked queries thatis currently not working according to[specs](https://github.com/influxdata/influxdb-python/blob/master/influxdb/client.py#L429)Closes#585.Closes#531.Closes#538.1 parentd6192a7 commitc903d73
2 files changed
+25
-29
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
249 | 249 |
| |
250 | 250 |
| |
251 | 251 |
| |
252 |
| - | |
| 252 | + | |
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
| |||
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
| 264 | + | |
| 265 | + | |
264 | 266 |
| |
265 | 267 |
| |
266 | 268 |
| |
| |||
312 | 314 |
| |
313 | 315 |
| |
314 | 316 |
| |
| 317 | + | |
315 | 318 |
| |
316 | 319 |
| |
317 | 320 |
| |
| |||
398 | 401 |
| |
399 | 402 |
| |
400 | 403 |
| |
401 |
| - | |
402 | 404 |
| |
403 | 405 |
| |
404 | 406 |
| |
405 | 407 |
| |
| 408 | + | |
406 | 409 |
| |
407 | 410 |
| |
408 | 411 |
| |
409 | 412 |
| |
410 | 413 |
| |
411 |
| - | |
| 414 | + | |
412 | 415 |
| |
413 | 416 |
| |
414 | 417 |
| |
| |||
499 | 502 |
| |
500 | 503 |
| |
501 | 504 |
| |
| 505 | + | |
502 | 506 |
| |
503 | 507 |
| |
504 | 508 |
| |
|
Lines changed: 18 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1400 | 1400 |
| |
1401 | 1401 |
| |
1402 | 1402 |
| |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
1413 | 1408 |
| |
1414 | 1409 |
| |
1415 | 1410 |
| |
1416 | 1411 |
| |
1417 | 1412 |
| |
1418 | 1413 |
| |
1419 | 1414 |
| |
1420 |
| - | |
| 1415 | + | |
1421 | 1416 |
| |
1422 |
| - | |
1423 |
| - | |
1424 |
| - | |
1425 |
| - | |
1426 |
| - | |
1427 |
| - | |
1428 |
| - | |
1429 |
| - | |
1430 |
| - | |
1431 |
| - | |
1432 |
| - | |
1433 |
| - | |
1434 |
| - | |
1435 |
| - | |
1436 |
| - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1437 | 1429 |
| |
1438 | 1430 |
| |
1439 | 1431 |
| |
|
0 commit comments
Comments
(0)