Problem
Hi, I've been working on persistence for pycrdt recently. In the project, the store(ystore) seems to grow infinitely. Do we need to provide a trim method for update compression?
I noticed that when a new connection is established, the latest document is directly synchronized, instead of transferring all the updates for the client to redo/undo.
Proposed Solution
It seems that we don't need to save all updates, just the most recent ones? Providing a trim method allows the server to compress updates that no longer needed, similar to disk organizing.
Additional context
Problem
Hi, I've been working on persistence for
pycrdtrecently. In the project, the store(ystore) seems to grow infinitely. Do we need to provide atrimmethod for update compression?I noticed that when a new connection is established, the latest document is directly synchronized, instead of transferring all the updates for the client to redo/undo.
Proposed Solution
It seems that we don't need to save all updates, just the most recent ones? Providing a
trimmethod allows the server to compress updates that no longer needed, similar to disk organizing.Additional context