Skip to content

Add configurables to control ystore.db history and cleanup frequency #481

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

@Darshan808 Darshan808 force-pushed the ystore-history-cleanup-config branch from b2c58e9 to ebc2b70 Compare May 1, 2025 18:49
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
None yet
Development

Successfully merging this pull request may close these issues.

1 participant