React-admin: App crashed due to high memory consumption

Created on 10 Aug 2017  路  6Comments  路  Source: marmelab/react-admin

Hello there.
I have a chart based "List" view in my app(a SPA), where I am fetching 10000 data points( each record/point is a complex object ) at once. The component takes a few seconds, I guess, but the data is loaded in the view. But after refreshing( 'refresh' button in the List component ) the view quite some times and/or after loading the same resource for different parameters frequently, the app crashes, evidently due to memory issue.
Taking note of the memory using the task manager, while testing the above fact, it was found that memory kept on increasing until the app was crashed.
Any ideas/directions/suggestions on how to resolve it !?!

All 6 comments

Use pagination ;)

@fzaninotto Thanks for the suggestion, but I am already done with the pagination as the specs are to make all the points appear in the same view. Do you think there can be any optimization done at core-level ??

Sure, write your own <Datagrid> based on one of the gazillion React Infinite Grid components.

@fzaninotto Hey thanks for that link. Also, do you think my issue could be related with the redux store ?

No idea, you should profile your code to know.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fzaninotto picture fzaninotto  路  3Comments

kopax picture kopax  路  3Comments

aserrallerios picture aserrallerios  路  3Comments

9747749366 picture 9747749366  路  3Comments

waynebloss picture waynebloss  路  3Comments