向客户端以大型应用程序向客户端数据数据的最佳方法是什么?
随着数据库集合的大小增加,我无法扩展我的React应用程序。我们是一个物理产品市场,目前显示列表的方式是通过1 HTTP请求和状态更新在Redux上立即加载整个“列表”集合。这是高效的,因为您需要在网站上执行任何操作之前加载整个“清单”集合。加载后,由于整个DB数据存储在Redux中,因此在渲染任何页面时就非常快。尽管这有时需要超过30次才能加载整个系列!
我的问题是:有没有一种方法可以打开HTTP流或使用MongoDB Atlas开放,以便我可以通过更新REDUX状态在服务器中进行动态呈现列表?
是否有其他方法通过利用React-Redux来实现更快的负载速度?
数据重型水疗中心的最佳实践是什么?
我们有一个带有React前端的Express节点JS后端。使用mongoDB进行存储。 React-Redux在组件之间共享状态。任何帮助将不胜感激!
I am having trouble scaling my react application as our database collections increase in size. We are a physical products marketplace and the way we currently display our listings is by loading the whole 'listings' collection at once on redux through 1 http request and state update. That is highly inefficient as you need to load the whole 'listings' collection before doing anything on the website. Once it is loaded it is super fast at rendering any page since the whole DB data is stored in redux. Though that takes more than 30s to load the whole collection at times!
My question: is there a way to open an HTTP stream or similar with MongoDB atlas so that I can render listings dynamically by updating the redux state as they come through from the server?
Is there any other way to achieve faster load speed by still leveraging react-redux?
What's the best practice with data heavy SPAs?
We have an express, node js back end with react front end. Using MongoDB for storage. React-redux to share states between components. Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论