
Processing Large Data Volumes using PK Chunking & Hyperbatch with Daniel Peter
About this episode
In this episode I will be speaking with Daniel Peter (@danieljpeter) about processing large volumes of data on Salesforce.
Daniel is Lead Application Developer at Kenandy, an ISV who had built an ERP solution on the Salesforce Platform.
Daniel's first hand experience of how the Salesforce multi-tenant database behaves has lead him to develop techniques for processing tens of millions of records.
He will describe the techniques which he has refined to ensure SOQL queries are executed with consistent reliability and not fall foul of the most common exceptions relating to row selection, which are:
- Non-selective query
- Too many query rows returned
- Query time out during execution
Daniel will explain how the Batch Apex query locator can be used to implement a technique called PK chunking which allows fine-grained control of the number of rows to be processed in each batch which largely overcomes the 3 common exceptions.
Daniel has even gone as far as experimenting with parallel execution through his Hyperbatch open source project which you can download from GitHub.
Whether your Salesforce database contains tens of thousands or rows or or if you're up into the 10 of millions Daniel's tips on working with multi-tenancy are a real eye opener as to what is possible when you design for scale from the outset.
Please enjoy!
Please leave feedback on the blog at TechnologyFlows.com or tweet me directly, I am @matmorris
Recorded in June 2017
This podcast interview was first published by Technologyflows.com
© TechnologyFlows
More from Technology Flows : Salesforce Architecture Podcast
Peter Coffee (@PeterCoffee) is a repeat guest on the TechnologyFlows podcast. With a seemingly bottomless bag of statistics, quotes, anecdotes, and historical references to back up his opinions it alw…
In this episode I will be speaking with Doug Ayers (@DouglasCAyers) about his approach to interpreting requirements and evaluating the options to architect a solution. As an experienced web applicatio…
In this series of interviews I will be speaking with people on the frontline of Salesforce architecture & development. In this first episode of the Architect Series my guest is Francis Pindar which is…
In conversation with Peter Coffee (@petercoffee) at the November 2016 French Touch Dreamin' conference in Paris. Peter is VP for Strategic Research at Salesforce and his Twitter bio describes him thus…
This week we are paying a visit to the Dreamforce IoT Zone. We’ll hear from Doug Merrett and his robot Sparky. Doug is a Principal Enterprise Architect at Salesforce. Even though it is 2015 and these…