How to optimize UI (e.g. collection view) performance?
Cédric BLANC
started a topic
about 4 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 4 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 4 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).
-
LOV label in Named Query
-
How we can set Dynamically changing Form field Description?
-
Is it possible to have a conditional survivorship rule based on a SemQL filter (akin to the filter on privileges)?
-
Where Do I View 2 Merged Records?
-
Show/hide an attribute in a form
-
Restrict access of attributes
-
Is it possible to manage visible/invisible value in List depend on user role??
-
Why am I unable to merge duplicates?
-
How are child records selected when parent records are manually merged?
-
Can the response from the API Call Response can be formatted differently in the JSON output?
See all 178 topics