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

Dynamic Sizing/Capacity #264

Closed
brockelmore opened this issue Apr 26, 2022 · 1 comment · Fixed by #287
Closed

Dynamic Sizing/Capacity #264

brockelmore opened this issue Apr 26, 2022 · 1 comment · Fixed by #287

Comments

@brockelmore
Copy link

brockelmore commented Apr 26, 2022

thanks for your work on this!

Curious if you have any thought on allowing for dynamic database sizes?

libmdbx does this (see here (author is russian and was moved to a russian based competitor after start of Ukraine invasion)), and it provides a good UX from that perspective.

Documentation for their resizing: https://libmdbx.dqdkfa.ru/group__c__settings.html#ga79065e4f3c5fb2ad37a52b59224d583e

On a broader note, there are some other interesting ideas in there that may provide some further inspiration

@cberner
Copy link
Owner

cberner commented Apr 27, 2022

Yep, sure have! redb already supports dynamic growth as the default, so it should start at ~1MB and then grow as data is inserted. It doesn't support shrinking or offline compaction, but I plan to add at least the latter (#20)

Cool, thanks for the link to libmdbx. That looks like an interesting list of features to consider adding

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 a pull request may close this issue.

2 participants