Bulk API Queries

The Spring '11 release introduced bulk queries as a pilot* feature of the Force.com Bulk API 21.0. With this feature, you can submit SOQL queries to Salesforce, run them asynchronously, and then download all your results once the query is completed.

This is a huge win for any developers working with long-running queries or queries with large result sets. You no longer have to leave a connection open while the query is being executed or call queryMore() a zillion times to retrieve the full result set! You can even monitor the progress of the query in Salesforce and download the results in your browser. As a bonus, both CSV and XML formats are supported.

How do you get your hands on this? *Since this feature is still in pilot, first you will need to contact your Salesforce representative to have it enabled for your organization. Next, you have a few choices depending on your needs:

Leave your comments...

Bulk API Queries