Salesforce's Scale Center introduces Database Insights, a bottom-up query performance tool that goes beyond static SOQL analysis. Unlike traditional static scanners that only inspect code patterns, Database Insights captures actual runtime bind variable values and execution plans to identify real CPU-heavy queries. It uses a mapping engine to trace database activity back to Apex classes, Flows, or reports, then generates targeted recommendations. Two concrete examples illustrate the gap: a NULL filter causing full table scans and a broad date range combined with low-cardinality fields triggering index skip scans. The tool enables impact-based prioritization by surfacing the actual top CPU consumers during peak hours rather than speculative code warnings.
Table of contents
The “runtime reality” gapEngineering the bottom-up approachCase study: The dynamic predicate problemComparing static analysis and Database InsightsHow to use Database Insights resultsA game changer for architects and developersAbout the authorSort: