Skip to content

Trim room? #60

@Wh1isper

Description

@Wh1isper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions