I fought the law and won

A few extra lines of code and we easily enabled our code to operate on twice as many records as allowed. If you look back at the limits in the previous chapter, you'll notice that we can query five times as many records as we can process with the DML statement. This means that twice as many records is not enough; we really need to be able to operate on five times as many. Over the years, many of the clients we work with came to us because their requirements well exceeded the Apex governor limits. You can always resort to using an external system and the Salesforce1 Platform's SOAP API, but we like to push Apex to the very edge, then cross our fingers and hit Enter! While it might be overkill, the following code block turns ...

Get Learning Apex Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.