MaxNoetzold / y-mongodb-provider

Mongodb database adapter for Yjs
MIT License
47 stars 10 forks source link

Fix transaction queue memory leak #7

Closed raineorshine closed 10 months ago

raineorshine commented 10 months ago

In the current implementation, promises are never cleared from the transaction queue (this.tr). This results in the memory usage steadily growing for each new Doc that is synced.

This PR removes the last transaction for a given Doc from the queue once it completes.