简体   繁体   中英

How to manage large data set in redux store?

When storing large something like 100000 records. It is for data plotting in highcharts. When setting API response to redux store browser to become hang

  1. Large amount of data can cause browser to hang, but not so often, i'll suggest you check for infinite loop in your codes, thats is the first source of browser hanging especially in react/redux applications, as hooks when mismanaged a little cause this problem,

  2. But if the source of problem is large amount of data, then query in chunks, until you have all the data required in your application store, plus for optimization. dont query any data you dont need for the moment,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM