Performance Issues in Angular Fire 6.1 and higher
- 主要语言
- TypeScript
- 星标
- 7.8k
- 派生
- 2.2k
- 平均合并
- 22 小时 28 分钟
- 30 天内合并 PR
- 6
描述
### Version info
**Angular:** 13.3
**Firebase:** 9.14
**AngularFire:** 7.2
### How to reproduce these conditions
Create a collection query using the compat mode matching a lot of documents. In our case the query matched 2500 documents. Use the `stateChanges` method on the query and subscribe to it.
Locally trigger an update on one of the documents matched by the query.
### Expected behavior
The listener should update in a performant manner when a state change is detected as was the case in Angular Fire 6.0.5
### Actual behavior
Angular Fire triggers a very long running task. In my scenario tasks lasted more than 4 seconds causing the application to freeze. This behavior can be observed on all versions of Angular Fire > 6.0.5
贡献指南
调研方向
首先,使用 stateChanges 和约 2,500 个匹配文档重现 compat-mode 下的 collection 查询,然后将其行为与 AngularFire 6.0.5 进行比较。完成的标准是识别并解决这个长时间运行的任务,使更新单个文档不再冻结应用程序。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, firebase, typescript
- 领域
- performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100