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

Use csv format to download batches. #39

Open
thomasdziedzic opened this issue Jan 10, 2015 · 3 comments
Open

Use csv format to download batches. #39

thomasdziedzic opened this issue Jan 10, 2015 · 3 comments

Comments

@thomasdziedzic
Copy link
Contributor

In the job file:
https://github.com/yatish27/salesforce_bulk_api/blob/master/lib/salesforce_bulk_api/job.rb#L205

You are using xml to download batches of large data sets.
This is unideal since salesforce allows you to specify csv [0] as the type.

This would have the following pros:

  1. Simplifying the parsing code
  2. Smaller download size
  3. Less cpu time spent parsing
  4. Less memory used trying to hold the xml

[0] - http://www.salesforce.com/us/developer/docs/api_asynch/
under Bulk Query -> Bulk Query Details

@yatish27
Copy link
Owner

I guess it would also simplify the the parsing

@hoffmanilya
Copy link

The performance gains from switching to CSV are substantial. In some simple bench marking I found that querying 25k sObjects takes ~83% less time (14s vs. 86s) and consumes ~95% less memory (29MB vs 554MB).

@yatish27
Copy link
Owner

Can you raise a PR for csv

On Sat, Aug 15, 2015 at 5:44 PM, Ilya Hoffman [email protected]
wrote:

The performance gains from switching to CSV are substantial. In some simple bench marking I found that querying 25k sObjects takes ~83% less time (14s vs. 86s) and consumes ~95% less memory (29MB vs 554MB).

Reply to this email directly or view it on GitHub:
#39 (comment)

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

No branches or pull requests

3 participants