Lightning DataTable with custom data types built on large datasets has a known performance limitation that causes delays when rendering the page.
There are two main causes for this:
1. The DataTable is loading a large dataset (a large number of columns and rows).
2. The custom implementation increases code complexity and adds extra nesting within the custom-type cell, which can lead to added rendering delay for the custom data type.
This article explains the recommended best practices for building custom data types in Lightning DataTable so that pages with large datasets render without noticeable delay.
When a Lightning DataTable uses custom data types and displays a large number of columns (30-40) alongside 200 or more rows, the table can take noticeably longer to load.
To avoid slow rendering, follow these guidelines when building custom data types for Lightning DataTable:
1. Keep code complexity within the custom data type to a minimum.
2. Use less nesting within the custom-type DataTable cell.
3. Reduce the number of columns — aim for 15-20 columns instead of 50 when displaying 250+ rows.
This typically happens when a DataTable combines a large number of columns (30-40+) with 200 or more rows while using custom data types. Follow the best practices above to reduce rendering delay.
000742642

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.