declarative-lookup-rollup-summaries
declarative-lookup-rollup-summaries copied to clipboard
Globally enable or disable real-time DLRS calculations
Background:
When doing mass record updates via Bulk API, and the record has DLRS triggers on it, Salesforce often throws System.LimitException: Too many SOQL queries as each record update is triggering a recalculation. The resolution is to temporarily deactivate DLRS on the affected records, then reactivate them once the bulk operation is completed. This is time consuming especially when the record is involved in multiple summaries.
Enhancement:
Introduce a global real-time switch that would allow users to enable or disable real-time calculations entirely in order to support mass record updates.