【发布时间】:2019-09-13 18:49:06
【问题描述】:
例如:WorkingTask 应用程序。我使用 Redux - React
结构
JobOrders(集合)/ eachJob(文档)
- the app is allow only insert new JOB.
- the whole day has 500-1000 Jobs.
- the all jobs must be used to recompute the report realtime.
- clear data once every midnight.
我知道如何获取和监听整个回调。 但问题是回调函数必须重新计算整个文档(每次新 JOB 到达时可能需要 300-1000 个工作。)
这就是我想要的:
- every new JOB arrived only new data in callback then I can recompute in REDUX.
- and prevent for some data is delay due to internet network connection.
我遇到 : to listen limit to 1 and sortBy timestamp 'desc'。
但问题是如果某些JOB由于网络连接而延迟,它不会调用回调。
【问题讨论】:
标签: firebase firebase-realtime-database redux google-cloud-firestore