salesforce-performance-tuning

Featured

Optimize Salesforce API performance with SOQL tuning, Composite API batching, and caching. Use when experiencing slow API responses, optimizing SOQL queries, or reducing API call count for Salesforce integrations. Trigger with phrases like "salesforce performance", "optimize salesforce", "salesforce latency", "salesforce caching", "salesforce slow", "SOQL optimization".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Salesforce Performance Tuning ## Overview Optimize Salesforce API performance: tune SOQL queries, minimize API calls using Composite/Collections APIs, implement metadata caching, and handle large result sets efficiently. ## Prerequisites - jsforce connection configured - Understanding of SOQL query plans - Redis or in-memory cache available (optional) - Access to Setup > API usage monitoring ## Instructions ### Step 1: SOQL Query Optimization ```typescript // BAD: SELECT * equivalent — fetches all fields const result = await conn.query('SELECT FIELDS(ALL) FROM Account LIMIT 100'); // GOOD: Only select fields you need const result = await conn.query(` SELECT Id, Name, Industry, AnnualRevenue FROM Account WHERE Industry = 'Technology' LIMIT 100 `); // BAD: Non-selective WHERE clause (full table scan) const result = await conn.query("SELECT Id FROM Contact WHERE Title LIKE '%Engineer%'"); // GOOD: Use indexed fields in WHERE (Id, Name, CreatedDate, RecordType, lookup fields) const result = await conn.query(` SELECT Id, Name, Title FROM Contact WHERE AccountId = '001xxxxxxxxxxxx' AND CreatedDate >= LAST_N_DAYS:30 LIMIT 200 `); // Use relationship queries to avoid N+1 pattern // BAD: Query Accounts, then query Contacts for each (N+1 API calls) const accounts = await conn.query('SELECT Id FROM Account LIMIT 50'); for (const acct of accounts.records) { await conn.query(`SELECT Id FROM Contact WHERE AccountId = '${acct.Id}'`); // 50 extra API calls!...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

salesforce-cost-tuning

Optimize Salesforce costs through API call reduction, edition selection, and license management. Use when analyzing Salesforce costs, reducing API consumption, or choosing the right Salesforce edition for your integration needs. Trigger with phrases like "salesforce cost", "salesforce pricing", "reduce salesforce costs", "salesforce license", "salesforce API usage", "salesforce budget".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-known-pitfalls

Identify and avoid Salesforce anti-patterns including SOQL N+1, governor limit violations, and API waste. Use when reviewing Salesforce code for issues, onboarding new developers, or auditing existing Salesforce integrations for best practices violations. Trigger with phrases like "salesforce mistakes", "salesforce anti-patterns", "salesforce pitfalls", "salesforce what not to do", "salesforce code review".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesloft-performance-tuning

Optimize SalesLoft API performance with caching, pagination strategies, and connection pooling. Use when experiencing slow API responses, reducing latency for bulk operations, or optimizing cadence sync throughput. Trigger: "salesloft performance", "optimize salesloft", "salesloft slow", "salesloft caching".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-performance-tuning

Optimize HubSpot API performance with caching, batching, and search optimization. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for HubSpot CRM operations. Trigger with phrases like "hubspot performance", "optimize hubspot", "hubspot slow", "hubspot caching", "hubspot batch", "hubspot latency".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-rate-limits

Implement Salesforce API limit management, backoff, and quota monitoring. Use when handling REQUEST_LIMIT_EXCEEDED errors, implementing retry logic, or optimizing API request throughput for Salesforce. Trigger with phrases like "salesforce rate limit", "salesforce API limit", "salesforce 403", "salesforce retry", "salesforce governor limits", "API quota".

2,266 Updated today
jeremylongshore