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.

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 (Get/Create/Update Records) will naturally take longer to execute, affecting screen load times.

  • Salesforce Flow Runtime: Components run within Salesforce's Flow execution environment. Performance can be influenced by overall Salesforce org performance and current load.

  • 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

Learn more about the Avonni Dynamic Components

We're Committed to Performance

Avonni continuously evaluates and enhances components for 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?