Limiting data rows for lists

If your Salesforce SOQL query is fetching large amount of results, consider limiting the number of data rows by using a LIMIT clause and using server-side pagination.

Look for opportunities where data from the server can be lazy loaded. For example, if you have three tabs, load data only for the first tab that will be rendered on the screen. Render the data for the second tab only when a user clicks the second tab.

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.