angular / angular/angularfire

Performance Issues in Angular Fire 6.1 and higher

未關閉
#3,306 3 則留言 8 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 進行比較。完成的標準是識別並解決這個長時間執行的 task,使更新單一文件不再凍結應用程式。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, firebase, typescript
領域
performance
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。