Content-Length: 254258 | pFad | http://github.com/simple-salesforce/simple-salesforce/pull/749

9A Use JSON stream parsing for lazy bulk queries by Idan-Or · Pull Request #749 · simple-salesforce/simple-salesforce · GitHub
Skip to content

Use JSON stream parsing for lazy bulk queries #749

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

Open
wants to merge 1 commit into
base: release/v1.12.7
Choose a base branch
from

Conversation

Idan-Or
Copy link

@Idan-Or Idan-Or commented Sep 26, 2024

This changeset makes Bulk API's query and query_all methods use JSON stream parsing when lazy_opeartion flag is enabled. By doing so, the methods now avoid loading the entire batch results setup into memory unnessecarily.

The code introduced can also automatically detect and handle gzip-encoded responses from the API, in cases where Content-Encoding: gzip header is inclued in the response.

In order to achieve this, a depedency on package ijson was added.

This changeset makes Bulk API's query and query_all methods use JSON
stream parsing when lazy_opeartion flag is enabled.
By doing so, the methods now avoid loading the entire batch results setup
into memory unnessecarily.

The code introduced can also automatically detect and handle
gzip-encoded responses from the API, in cases where `Content-Encoding:
gzip` header is inclued in the response.

In order to achieve this, a depedency on package `ijson` was added.
@Idan-Or Idan-Or force-pushed the feature/json-stream-lazy-queries branch from 25c4ddb to 19ab46a Compare October 13, 2024 13:37
@jon-wobken jon-wobken changed the base branch from master to release/v1.12.7 December 17, 2024 13:20
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.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/simple-salesforce/simple-salesforce/pull/749

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy