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

Feature: Support for Atomic Backup API (Similar to SQLite Backup API) #5053

Open
YourTechBud opened this issue Mar 13, 2025 · 0 comments
Open
Labels
feature New features or missing components of existing features

Comments

@YourTechBud
Copy link

API

Node.js

Description

Kuzu currently lacks an atomic export operation to create a full database backup while allowing writes to continue. This feature would be useful for use cases such as event-sourced architectures, where backups need to be taken at a specific event index to enable point-in-time recovery.

Use Case:

  • In an event-sourced system, all writes to Kuzu are synchronized through an event log.
  • During a backup, it's crucial to capture the exact event index to enable deterministic recovery.
  • A feature similar to SQLite's Backup API would allow creating a consistent database snapshot without stopping writes.

Proposed Solution:

  • Implement a mechanism to clone or export the entire database atomically.
  • Ensure that the snapshot remains consistent even if writes occur during the operation. Or automatically pause all writes on the SDK layer so the client code doesn't need to worry about locking.
  • Provide an API to initiate and manage such a backup process.
@YourTechBud YourTechBud added the feature New features or missing components of existing features label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

No branches or pull requests

1 participant