Reduce State Objects in runtime

0
Hi Community, My app is full of non-persistent entities and we gt the  data from API's and use non-persistent entities to show the data in UI . In a single page we are using many tabs and based on requirement we are navigating between pages and we are getting the following  warning and error messages "Request state size of 464 objects exceeds the threshold of 100 objects", Due to this issue we are facing that the application taking more time to loading the pages and it will take more time to navigate to different tabs, As of my understanding  it is because of more number of State Objects(NPEs and Non committed Objects) that are stored in runtime. Is there any suggestions or solution to reduce the State objects stored in runtime and remove the previous Non Persistable Objects while I am open the different tab in the same page?
asked
1 answers
0

The low-hanging-fruit options to reduce the number of objects at page retrieve/refresh:

  • Flatten the objects that you show in datagrids and lists, ideally have only one object per line
  • Use marketplace module "In view content renderer" to make your tabs only lazyload your data,waiting until the content comes into view

 

answered