How to optimize UI (e.g. collection view) performance?
Cédric BLANC
started a topic
about 2 years ago
We have a case where we have a contract entity consisting of ~60 foreign key references to other entities and ~50 simple attributes.
For this entity we have a collection that visualizes 41 foreign keys and 18 simple attributes.
The amount of records for that entity is ~10 000.
Loading of the collection view takes longer than expected yet the infra side should be on a suitable level from performance point of view.
So the topics I'd like to discuss about are:
How much would utilizing built-in LOVs improve performance compared to LOVs created as entities?
Is the number of columns or the amount of data affecting more on the loading speed of the collection view?
Is there some other ways to optimize this to make it load faster?
Best Answer
S
Subham Dixit
said
about 2 years ago
Do you have any row-level security implemented on that collection ? Also, do you have lots of sortings ?
On my side I had similar performance issues on entities not very huge (~5000 records), and the two main causes were :
row-level security implemented thanks to functions in the database, called in semarchy model to filter the collection => I replaced this "database function" mechanism with another RLS mechanism based on model variables, and performance increased like 10x to 20x faster (at least).
too much sorting in collections => it's recommended to keep only a few sortings. I you have lot of columns in your collection and sorting applied to lots of them, it will decrease performance a lot
1 Comment
S
Subham Dixit
said
about 2 years ago
Answer
Do you have any row-level security implemented on that collection ? Also, do you have lots of sortings ?
On my side I had similar performance issues on entities not very huge (~5000 records), and the two main causes were :
row-level security implemented thanks to functions in the database, called in semarchy model to filter the collection => I replaced this "database function" mechanism with another RLS mechanism based on model variables, and performance increased like 10x to 20x faster (at least).
too much sorting in collections => it's recommended to keep only a few sortings. I you have lot of columns in your collection and sorting applied to lots of them, it will decrease performance a lot
Cédric BLANC
We have a case where we have a contract entity consisting of ~60 foreign key references to other entities and ~50 simple attributes.
For this entity we have a collection that visualizes 41 foreign keys and 18 simple attributes.
The amount of records for that entity is ~10 000.
Loading of the collection view takes longer than expected yet the infra side should be on a suitable level from performance point of view.
So the topics I'd like to discuss about are:
How much would utilizing built-in LOVs improve performance compared to LOVs created as entities?
Is the number of columns or the amount of data affecting more on the loading speed of the collection view?
Is there some other ways to optimize this to make it load faster?
Do you have any row-level security implemented on that collection ? Also, do you have lots of sortings ?
On my side I had similar performance issues on entities not very huge (~5000 records), and the two main causes were :
=> I replaced this "database function" mechanism with another RLS mechanism based on model variables, and performance increased like 10x to 20x faster (at least).
Subham Dixit
Do you have any row-level security implemented on that collection ? Also, do you have lots of sortings ?
On my side I had similar performance issues on entities not very huge (~5000 records), and the two main causes were :
=> I replaced this "database function" mechanism with another RLS mechanism based on model variables, and performance increased like 10x to 20x faster (at least).
-
Extend a model with new entities or attributes
-
Data types in xDM
-
Effective date on entities
-
Search using wild cards
-
Export a model from production and import on a development environment
-
"Allow Delete" vs "Allow Removal" privileges
-
LOV label in Named Query
-
Select location on a map and save coordinates
-
Is there a way to set up a master-detail relationship on browse mode?
-
Choose Either a Stepper or A Workflow Based on The User Privileges
See all 275 topics