简体   繁体   English

redux店大数据集如何管理?

[英]How to manage large data set in redux store?

When storing large something like 100000 records.当存储像 100000 条记录这样的大东西时。 It is for data plotting in highcharts. When setting API response to redux store browser to become hang用于highcharts中的数据绘制。当设置API响应redux存储浏览器成为挂起

  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,大量数据会导致浏览器挂起,但不会经常挂起,我建议您检查代码中是否存在无限循环,这是浏览器挂起的第一个来源,尤其是在react/redux应用程序中,作为管理不善的hooks这个问题,

  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,不要查询您暂时不需要的任何数据,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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