Query Cursors Optimized for Improved Performance

Apex optimized the way it uses query cursors. In cases such as SOQL queries that use a for loop, Apex no longer generates or uses query cursors internally. Instead, records are buffered in memory for improved performance and reduced query cursor contention. This optimization doesn’t apply to Batch Apex queries.

Where: This change applies to Lightning Experience and Salesforce Classic.