Salesforce SOQL Optimization
Optimizes Salesforce SOQL queries for high performance, selectivity, and strict governor limit compliance.
This skill provides specialized guidance for writing efficient Salesforce Object Query Language (SOQL) queries, specifically designed to handle large data volumes (100K+ records) and avoid common governor limit exceptions. It helps developers implement index strategies, analyze query plans via the Developer Console, fix SOQL-in-loops anti-patterns, and utilize modern features like TYPEOF and semi-joins. It is an essential tool for troubleshooting slow page loads, CPU timeouts, and heap size issues in complex Salesforce environments.
Key Features
01Query Plan Analysis & Selective Filtering
02Modern SOQL Syntax (TYPEOF, Bind Variables, Aggregate Queries)
03SOQL-in-Loops Detection and Remediation
04Large Data Volume (LDV) Query Strategies
059 GitHub stars
06Parent-to-Child & Child-to-Parent Relationship Optimization
Use Cases
01Improving performance for queries targeting standard or custom objects with millions of records.
02Resolving 'Too many SOQL queries: 101' governor limit exceptions in Apex triggers.
03Refactoring legacy Apex code to reduce CPU time and heap size during data processing.