Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingest stream in chunks #10

Merged
merged 3 commits into from
Jul 25, 2022
Merged

Ingest stream in chunks #10

merged 3 commits into from
Jul 25, 2022

Conversation

bahlo
Copy link
Member

@bahlo bahlo commented Jul 24, 2022

This makes Client.datasets.ingest_stream method ingest items in chunks of 1000 items. The advantage of this is to keep within the limits of request size and timeouts. Plus we can retry requests!

It also fixes the representation of QueryMessagePriority and QueryMessageCode.

@bahlo bahlo force-pushed the arne/ingest-stream-in-chunks branch from 735f286 to ce5b66f Compare July 24, 2022 15:32
@bahlo bahlo requested a review from dasfmi July 25, 2022 06:41
This will produce smaller requests and makes retries possible.
The type was set up as u8, but it's actually encoded as a string.
The type was set up as u8, but it's actually encoded as a string.
@bahlo bahlo force-pushed the arne/ingest-stream-in-chunks branch from ce5b66f to 31d6ada Compare July 25, 2022 07:52
@bahlo bahlo merged commit 3bb0522 into main Jul 25, 2022
@bahlo bahlo deleted the arne/ingest-stream-in-chunks branch July 25, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants