Performance Issues in Angular Fire 6.1 and higher
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 22h 28m
- PR unite (30g)
- 6
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo la query della collection in compat-mode con stateChanges e circa 2.500 documenti corrispondenti, quindi confrontane il comportamento con AngularFire 6.0.5. Il lavoro è completato quando il task di lunga durata è stato identificato e risolto, in modo che l’aggiornamento di un singolo documento non blocchi più l’applicazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, firebase, typescript
- Ambito
- performance
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100