Performance Guide
This page offers solutions for improving the speed of the Avonni Components package in Salesforce.
This guide provides recommendations and considerations for optimizing the performance of Avonni Components when used within Salesforce Flows.
Overview
Avonni Components for Flows are designed to enhance your Flow screens and provide a rich user experience within the Flow Builder environment. While engineered for efficiency, their performance operates within the context of the Salesforce Flow runtime.
Recommended Setting: Lightning Web Security (LWS)
One of the most effective ways to prevent performance issues with Avonni Components in your Salesforce Screen Flows is to enable Lightning Web Security (LWS) in your org's Session Settings. Activating LWS not only enhances the security of your Lightning Web Components but also significantly improves the speed and reliability of Avonni Components. Salesforce recommends this setting for optimal performance and user experience.
Performance Considerations within Flows
Several factors influence the speed and responsiveness of Avonni Components inside your Flows:
Flow Complexity: The overall design of your Flow significantly impacts performance. Flows with numerous elements, complex branching logic, multiple loops, or frequent data operations (such as Get, Create, and Update Records) will naturally take longer to execute, which can affect screen load times.
Salesforce Flow Runtime: Components run within Salesforce's Flow execution environment. The overall performance of the Salesforce org and the current load can influence performance.
Avonni Query Data Source (QDS) Advantage: For Avonni data components (like Data Table, List) used within a Flow screen, leveraging the Avonni Query Data Source can often provide more efficient data retrieval compared to using multiple standard Flow "Get Records" elements followed by assignments to populate the component.
Sandbox vs. Production: As with many Salesforce features, components may render, and Flows may execute slightly slower in Sandbox environments than Production orgs due to differences in resource allocation. Always perform final performance testing in Production or a Production-like Sandbox.
Tips for Optimizing Performance in Flows
Streamline Your Flow Design
Minimize the number of elements on each screen.
Optimize loops and decision logic.
Perform data operations efficiently (e.g., update records in bulk after collection instead of inside a loop).
Leverage Avonni Query Data Source (Where Applicable)
For components like Data Table or List within your Flow screens, use the integrated Avonni Query Data Source to fetch and filter data efficiently, reducing the need for multiple separate Flow data elements.
Test in Realistic Environments
While building in any Sandbox is fine, conduct performance testing in an environment that closely mirrors Production.
General Salesforce Settings Affecting Performance
These Salesforce settings can impact the performance of all Lightning Web Components, including Avonni's:
Lightning Web Security (LWS): Salesforce generally recommends enabling LWS in your Salesforce org's Session Settings, which can improve the performance and security of LWCs.
Caching: Initial load times for any LWC, including Avonni components (especially in the Flow Builder itself), might occasionally be longer due to Salesforce's internal caching mechanisms being populated. Subsequent loads are typically much faster.
IMPORTANT NOTE: For Optimal Performance on Lightning Pages
While Avonni Components for Flows are excellent for enhancing Flow screens, if your primary goal is to build custom, high-performance UI elements directly onto your Salesforce App, Record, or Home Pages (outside of a specific Flow process), we strongly recommend using our separate package: Avonni Dynamic Components.
Avonni Dynamic Components are specifically architected as native LWCs optimized for fast page loading, responsiveness, and native reactivity directly within the Lightning App Builder environment. If page load speed and direct page UI customization (like building custom related lists, dashboards, or unique record layouts) are your top priorities, Avonni Dynamic Components provide the superior, purpose-built solution.
Learn more about the Avonni Dynamic Components
Product TourWe're Committed to Performance
Avonni continually evaluates and enhances components to ensure optimal performance. If you have specific performance questions or concerns regarding Avonni Components for Flows, please contact our support team.
Last updated
Was this helpful?