I am facing an issue when using a table and the default filter feature in Pega. When I open the filter and click on the checkboxes, the time it takes to complete each selection is usually 3 seconds or more.
Specifically:
I am using a table that displays 25 rows per page.
The table has 3 columns that display data using a dynamic layout (marked in green in the attached image).
The issue occurs when there are around 40 records or more.
If I hide those 3 columns, the issue does not occur anymore. When I open the filter and click on the checkboxes, the response time is faster.
I have tried to investigate but haven’t found a solution or understood the root cause.
I hope to receive a solution that allows me to keep the current table setup but improves the response time when clicking on the filter checkboxes. Alternatively, I would appreciate knowing the cause of the issue.
-Dynamic layouts in Pega are versatile and powerful for structuring content but can be resource-intensive, especially when used within tables that are expected to be highly interactive.
When you use dynamic layouts within table columns, each row’s dynamic layout is rendered individually. If you have 25 rows per page and three columns using dynamic layouts, that means 75 dynamic layouts are being rendered for just one page of data. This can significantly impact performance, particularly when filtering, as each interaction might trigger re-rendering or additional processing.
-The filter checkboxes rely on quick interaction and immediate response. If the columns within the table involve complex rendering (as with dynamic layouts), every filter operation might be causing the system to reprocess or rerender the content, leading to the observed delay.
-Check volume of data. The issue becoming noticeable around 40 records aligns with the idea that the dynamic layouts are consuming more resources than a simple layout or inline data display would. As the volume of data increases, so does the processing time required for each interaction.
At first try optimizing the Dynamic Layouts and check if performance changes.