Some queries that were once fast are now approaching timeout limits. Indexes exist, but performance gains are inconsistent. As more filters and joins are added, tuning becomes difficult. I want to understand why SOQL optimization gets harder at scale?
Decode Trail Latest Questions
Too many SOQL queries: 101
We noticed that a Flow works correctly when tested as an admin, but behaves differently or fails for standard users. Sometimes records aren’t updated, or certain paths don’t execute at all. There are no obvious errors shown to users. I ...
Controllers are often overloaded with logic in traditional Apex code.This creates tight coupling between UI and business rules.A cleaner approach requires a clear boundary.
Business rules often evolve gradually rather than changing all at once.Testing new logic without disrupting live processes is critical.Traditional Apex-based approaches make this risky.
Our reports were accurate when the org was simple, but over time they’ve started giving inconsistent or confusing results. Multiple formula fields, record types, and automation now influence the same data. Different users also report seeing different numbers. I’m trying ...
lwc
We run Apex batch jobs on a schedule, and most of the time they complete successfully. Occasionally, they fail without obvious errors or with inconsistent behavior. Rerunning the same job often works. I’m trying to understand why batch jobs behave ...
Single-class Apex often feels faster when building small features.Over time, logic, SOQL, DML, and UI handling get tightly coupled.This makes the codebase fragile and difficult to extend?