Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History management in Loro #416

Closed
dileping opened this issue Aug 5, 2024 · 4 comments
Closed

History management in Loro #416

dileping opened this issue Aug 5, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@dileping
Copy link

dileping commented Aug 5, 2024

Hi guys,

Have you explored something related to history truncation/management/garbage collection for Loro? Maybe something like this: antimatter?

What do you think about the topic? Is Antimatter a viable option, or do you have something better in mind?

Thanks,
Daniel

@zxch3n
Copy link
Member

zxch3n commented Aug 6, 2024

Yes. Based on the REG algorithm, we can offer a straightforward API to trim the history by timestamp. For example, we can allow users to omit all the history edits that happened one month ago and put them in cold storage. So you may have the best properties of both worlds.

Antimatter doesn't suit us. It involves a lot of bookkeeping, and I think it's very hard to tell whether a peer is going to make new edits after it goes offline in a real-world scenario.

We are still working on it. Once it's done, I'll write a document to discuss the details.

@zxch3n zxch3n added the documentation Improvements or additions to documentation label Aug 6, 2024
@dileping
Copy link
Author

dileping commented Aug 6, 2024

@zxch3n Thanks for your fast reply! What you described sounds very useful in real-world scenarios. Do you have any plans for the release date?

@zxch3n
Copy link
Member

zxch3n commented Aug 6, 2024

Hopefully this month!

@dileping
Copy link
Author

dileping commented Aug 6, 2024

@zxch3n Very exciting! I'm looking forward to it and would love to test it.

@dileping dileping closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants