Skip to content

Conversation

Darshan808
Copy link
Member

References #430

Description

This PR introduces two new configurables to SQLiteYStore class which are introduced in y-crdt/pycrdt-store#2:

  • history_length: Maximum age (in seconds) of document history to retain in the YStore. Older entries are pruned. Defaults to None (no pruning).
  • min_cleanup_interval: Minimum interval (in seconds) between automatic cleanup operations. Defaults to 60 seconds.

These options provide better control over the size of ystore.db, which can grow significantly over time.

Copy link
Contributor

Binder 👈 Launch a Binder on branch Darshan808/jupyter-collaboration/ystore-history-cleanup-config

@Darshan808 Darshan808 self-assigned this Apr 30, 2025
@Darshan808 Darshan808 added the enhancement New feature or request label Apr 30, 2025
@Darshan808
Copy link
Member Author

From discussion in #430, I think we should set some default value for history_length (it's currently None, meaning no history trimming).
Open to suggestions on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant