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

Snapshots #48

Merged
merged 2 commits into from
Jan 18, 2022
Merged

Snapshots #48

merged 2 commits into from
Jan 18, 2022

Conversation

rnewson
Copy link
Contributor

@rnewson rnewson commented Jan 12, 2022

Add ability to create a snapshot of an index in a separate directory (using hard links, so must be same filesystem).

@tonysun83
Copy link
Contributor

tonysun83 commented Jan 16, 2022

Just had one more question regarding snapshot removal (see above thread).

Out of scope for this PR, but I'm curious whether this new functionality will be consumed with Dreyfus. From a couchdb perspective, could these snapshots also help with large indexing rebuilds? In other words, instead of having to rebuild everything for whatever reason, we can just start at the snapshot?

@rnewson
Copy link
Contributor Author

rnewson commented Jan 17, 2022

Hi, Yes indeed. The purpose here is to allow administrators the ability to speed up database recovery. While restoring copies of the .couch files is sufficient to get you back and running it does mean waiting for all the indexes. The snapshots here will include the embedded CommitData which includes the update sequence we've reached, so clouseau will just index from that point and not zero.

As for dreyfus, I'm not sure if the api goes there as the motivation here is to add this ability for IBM/Cloudant usage in the first instance. Putting that in dreyfus means committing to a method that might not suit everyone and might change in an incompatible way in the near future.

@tonysun83
Copy link
Contributor

+1

@rnewson rnewson merged commit 59c44fa into master Jan 18, 2022
@rnewson rnewson deleted the snapshots branch January 18, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants