angular / angular/angularfire

Performance Issues in Angular Fire 6.1 and higher

オープン
#3,306 コメント 3 件 リアクション 8 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
7.8k
フォーク
2.2k
平均マージ
22時間 28分
マージ済み PR(30日)
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 のコレクションクエリを再現し、その後、AngularFire 6.0.5 と動作を比較します。単一のドキュメントの更新によってアプリケーションがフリーズしないよう、長時間実行されるタスクを特定して解決できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, firebase, typescript
領域
performance
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。