What problem does it solve?
Salesforce data access often suffers from inefficient SOQL queries that cause slow performance and governor-limit pressure. This skill helps you analyze and optimize queries by interpreting query plans, identifying selective filters, and guiding indexing decisions.
Core Features & Use Cases
- Query Plan tool usage: analyze query plans from Developer Console or Tooling API to assess performance characteristics.
- Reading and interpreting plan fields: cardinality, leadingOperationType, relativeCost, and sobjectCardinality to guide optimizations.
- Applying best practices: enforce LIMIT usage, avoid leading wildcards, optimize relationship queries, and design appropriate indexing strategies for common filters.
- Real-world scenarios: bulk data loads, complex joins across related objects, and incremental query tuning to stay within governor limits.
Quick Start
Open Developer Console, run a SOQL query with the Query Plan tool, and apply the recommended optimizations to improve performance.