
Summarize with AI
Salesforce performance optimization: how to improve CRM speed and user experience
Key takeaways:
- A slow Salesforce org is rarely caused by one thing. Pages, code, automation, data volume, and integrations each add delay, so measure before you fix.
- Many quick wins need no code at all, such as trimming record pages, turning on browser caching, and cleaning up old automation.
- Data skew, where one record has thousands of related records, causes slow saves and lock errors that are easy to miss.
- AI agents and new integrations add queries and API calls to every request, so test their load before rollout.
- Review performance after each of Salesforce’s three yearly releases, not only when users complain.
Most CRM managers hear about performance problems second-hand. A sales rep says the opportunity page takes forever to open. A service lead says cases save keep failing during busy hours. Finance says the pipeline report times out every Monday. Each complaint sounds small, but together they push people away from the CRM and back to spreadsheets.
Salesforce performance optimization is the work of finding where time is lost in your org and fixing the biggest causes first. This guide is written for the people who own the org day to day: Salesforce admins, CRM managers, and sales or service operations leads. It explains each cause in plain terms and shows which fixes an admin can handle and which need a developer.
Key numbers at a glance
- Sellers spend only 40% of their time selling, according to Salesforce’s 2026 State of Sales report. Every slow page eats into that 40%.
- 54% of sellers have already used AI agents, and nearly 9 in 10 plan to by 2027, according to the same report. Each agent adds new work to your org, so performance matters more, not less.
- 79% of high-performing sales teams prioritize data hygiene, compared with 54% of underperformers, according to Salesforce’s 2026 research. Clean data is faster data.
Why is Salesforce running slowly?
Salesforce usually slows down because years of small additions pile up. Each new component, flow, field, integration, or report adds a little work to every page load or save. No single change feels heavy, but together they make the org sluggish.
Most Salesforce performance issues come from five places:
- Pages: Record pages packed with components, related lists, and charts.
- Code: Custom Apex code or queries that are not written for large volumes.
- Automation: Several flows, triggers, and old rules firing on the same save.
- Data: Large record counts, missing indexes, and data skew.
- Integrations: Outside systems that make users wait for a response.
The table below links common symptoms to their likely cause and the person who usually fixes them.
| What users notice | Likely cause | Who usually fixes it |
|---|---|---|
| Record pages take a long time to open | Too many components or related lists | Admin |
| Saving a record is slow on one object | Overlapping flows, triggers, or validation rules | Admin and developer |
| "Unable to lock row" errors at busy times | Data skew or parallel bulk jobs | Admin and developer |
| Reports time out | Broad filters or very large data sets | Admin |
| Overnight integration jobs fail | Large batches, slow external systems, or API limits | Developer |
| The whole org gets slower over months | Data growth without archiving or indexes | Admin and developer |
How do you measure Salesforce performance before fixing it?

Measure first so you know what you are fixing and can prove that it worked. Pick the three to five workflows users complain about most, such as opening an opportunity or saving a case, and record how long they take today.
Salesforce includes several free tools for this:
- Lightning Usage app: Shows Experienced Page Time (EPT), which is how long a Lightning page takes to fully load for real users.
- Analyze button in Lightning App Builder: Predicts how fast a record page loads and suggests what to remove.
- Speed test page: Adding /speedtest.jsp to your Salesforce URL checks whether the user’s browser, device, and network are part of the problem.
- Scale Center and ApexGuru: Show org-wide performance data and flag slow code and queries. Availability depends on your edition.
- Debug logs: Show every query, calculation, and automation step in a single save.
- Org Check: A free Salesforce Labs tool for org health reviews. Salesforce retired its Optimizer app starting with Winter ’26, and Org Check is the common replacement, though it is community-supported.
Write down the timing, the number of records involved, and the time of day for each test. Run each test a few times, because one slow result can be bad luck, while a pattern points to a real problem.
How can you improve Lightning page speed?
You can improve Lightning page speed by loading less on each page and letting the browser reuse what it has already downloaded. This is usually the fastest win, because most of it is configuration an admin can change without code.
Simplify record pages
A record page loads every visible component at once. Each report chart, related list, and custom component runs its own query. Start with these changes:
- Move rarely used items into tabs, so they load only when someone opens that tab.
- Use Dynamic Forms and visibility rules to show fields and components only to the users who need them.
- Limit related lists to the ones people actually use, and reduce the number of columns.
- Remove report charts from busy record pages, and link to the full report instead.
Think about the main task on each page. A sales rep on an opportunity needs the stage, amount, next step, and key contacts. Put those first, and move everything else lower or into tabs.
Turn on browser caching
In Session Settings, Salesforce offers an option to enable secure and persistent browser caching. When it is on, the browser stores parts of Lightning so pages load faster on repeat visits. Check this setting early, because it is a quick switch that some orgs have turned off.
Check third-party components
Installed apps from AppExchange can add heavy components to your pages. Test a page in a sandbox with and without the component, and compare the Analyze score. If one component slows the page sharply, raise it with the vendor.
Remember mobile users
Field teams often use the Salesforce mobile app on slower connections. Keep mobile layouts short, and test key pages on a real phone over a normal mobile network, not only on office Wi-Fi.
How do you fix slow code, queries, and flows?
Slow saves usually come from code, queries, or automation that does more work than needed. Salesforce performance tuning at this level means finding that extra work and removing it.
Find slow Apex code and SOQL queries
Apex is Salesforce’s programming language, and SOQL is how it reads data. Both run inside strict limits for each save, so inefficient code can slow pages or cause errors when many records change at once.
The most common problems a developer will look for:
- Queries inside loops: Code that runs one query per record instead of one query for all records. This is the classic cause of failures during bulk imports.
- Queries that scan too much data: Filters that do not use an index force Salesforce to read far more records than needed. The Query Plan tool in the Developer Console shows whether a query is efficient.
- Fetching unused fields: Asking for every field when the logic needs only two.
- Work that can wait: Tasks like sending updates to other systems can run in the background, so the user does not wait for them.
If your org has years of custom code from different developers, a code review is often the fastest path to real gains. Experienced Salesforce development services teams can trace the slowest transactions and fix them without changing how the business works.
Clean up flows and old automation
Every flow, trigger, and validation rule on an object runs during the same save. When several people build automation over several years, nobody remembers what fires when, and saves slow down.
Salesforce ended support for Workflow Rules and Process Builder on December 31, 2025. They still run, but they no longer get fixes. Use this as a chance to combine automation, not just copy each old rule into a new flow.
Practical flow fixes include:
- See what runs: Flow Trigger Explorer in Setup lists the record-triggered flows on each object and their order.
- Use before-save flows: For updates to the same record, before-save flows are faster than after-save flows.
- Tighten entry conditions: Run a flow only when the fields it cares about change.
- Avoid loops with lookups: Get the records you need once, then work through them.
- Test with many records: A flow that works for one record can fail for 200.
When automation keeps growing, it helps to plan it as a system rather than a list of rules. Salesforce AI automation can replace stacks of manual rules with fewer, smarter processes, as long as each one is tested for performance before release.
How does data volume affect Salesforce performance?
More data means more work for every query, report, and save. A query that is instant with 5,000 records can crawl with 5 million. Salesforce database optimization keeps that growth under control.
Watch for data skew
Data skew happens when one record has a very large number of related records. Salesforce’s Large Data Volumes guidance describes skew as more than 10,000 child records under one parent. A common example is a single “Unassigned” account that collects hundreds of thousands of contacts or cases.
When many users or jobs update records under the same parent, Salesforce has to lock that parent. The others wait, and some fail with an “unable to lock row” error. If saves are slow only at busy times, check for skew before changing any code. Spreading records across several parent accounts or owners usually fixes it.
Use indexes and selective filters
Indexes help Salesforce find records quickly, like the index at the back of a book. Standard fields such as record IDs, names, and lookups are indexed already. For other fields that you filter on often, you can ask Salesforce Support to add a custom index.
Archive and report smarter
- Archive or delete old records when your compliance rules allow it.
- Add date ranges and specific filters to large reports.
- Limit the number of components on each dashboard.
- Move heavy historical analysis to a reporting or BI tool if native reports keep timing out.
Agree on data retention rules with finance and compliance before you delete anything.
How do integrations and AI agents affect CRM speed?
Integrations and AI agents add work that users do not see. When a save has to wait for an ERP, a billing system, or an AI response, the user waits too. These are now some of the most common causes of poor Salesforce CRM performance.
Keep users out of the waiting line
If a user does not need an answer from another system right away, the request should run in the background. Developers can use Platform Events, Change Data Capture, or background Apex jobs to send data after the save finishes.
Other integration checks:
- Send data in batches: The Bulk API handles large loads far better than thousands of single-record calls.
- Send only what is needed: Smaller payloads move faster and fail less often.
- Handle failures safely: Set timeouts, limit retries, and make sure a retried request cannot create duplicate records.
- Watch API limits: Monitor daily API usage so a busy integration does not block others.
A quick inventory helps. List every system that connects to Salesforce, note whether users wait for it, and mark the ones that fail most often. The worst offender usually shows up within an hour.
Plan for the load from AI agents
AI agents read records, run flows, and call Apex to complete their tasks. One agent conversation can trigger many queries, and dozens of agents running at once add up quickly. An agent that searches too broadly can also slow down the pages and reports your users depend on.
Before rollout, test each agent like any other heavy integration:
- Limit the data it reads: Give agents only the objects and fields they need.
- Reuse efficient actions: Point agents to flows and Apex that are already optimized.
- Measure the extra load: Compare query counts, API calls, and page times before and after the agent goes live.
Teams building custom agents on top of CRM data often work with specialists in AI agent development, so that agent actions are designed for performance from the start.
How often should you review Salesforce performance?
Review performance after every Salesforce release and after any major change to your org. Salesforce ships three releases a year, in spring, summer, and winter. Each one can change how features behave, so rerun your baseline tests in a sandbox before and after each upgrade.
Also review performance when you:
- Add a new integration or AI agent.
- Launch a large new flow or Apex feature.
- Import a large batch of records.
- Add many new users at once.
A short quarterly check of your top workflows catches slow growth before users start complaining.
Should you fix it in-house or get help?
Admins can handle many fixes on their own, such as page layouts, browser caching, report filters, and simple flow cleanup. Outside help makes sense when the cause sits in custom code, data model design, data skew, or complex integrations.
Salesforce consulting services are most useful for diagnosis. A specialist can trace the slowest transactions, rank fixes by impact, and hand clear tasks back to your team. Ongoing Salesforce optimization services then help keep the org fast as data and users grow.
Conclusion
Salesforce performance optimization works best as a habit, not a one-time project. Measure the workflows that matter most, fix the biggest cause first, and test again after each change. Many of the fastest wins, such as lighter pages, browser caching, and cleaner automation, need no code at all.
As your org adds data, integrations, and AI agents, the work shifts toward Salesforce application optimization and system optimization at a deeper level. A regular review after each release keeps the CRM fast enough that people want to use it.





