When updating from @email@example.com to @firstname.lastname@example.org updates became very slow. We operate in a relatively high write environment, and are streaming state updates into firebase. When upgrading from 0.5.12 to 0.5.13 we began seeing not just slow downs, but issues with ack'ing messages to pub/sub. We tracked this down to a change in the @firebase/database library, specifically commit 86971ea. A change occurred in src/core/Repo.ts that added:
to the Repo.update function. This update changed the time it took this loop:
to complete from an average of 0ms to 750ms. This average of 750ms spans a range of about 5ms to upwards of 10,000ms. We believe this slowdown to be the cause of both our increase in observed update time, and our issues ack'ing message to pub/sub, since this piece of code seemingly never releases the event loop.
Steps to reproduce:
Write ~100 updates continuously as fast as you can, and track the time it takes to complete an update.
The text was updated successfully, but these errors were encountered: