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

Configuration of LMDB map size in other DBs than Baser #853

Open
rodolfomiranda opened this issue Aug 28, 2024 · 1 comment
Open

Configuration of LMDB map size in other DBs than Baser #853

rodolfomiranda opened this issue Aug 28, 2024 · 1 comment

Comments

@rodolfomiranda
Copy link
Contributor

Feature request description/rationale

In PR #810, @pfeairheller added a feature to set the maximum file size for the main KERIpy LMDB database (Baser).
In witnesses, we realized that also the mailbox DB can grow considerably, so we need a way to change the map_size config for other dbs.
Should we allow the configuration on some selected DBs? or should we apply a global setting in LMDBer? I'd like to hear opinions before starting a PR.

@SmithSamuelM
Copy link
Collaborator

I suggest that adding parameters to LMDBer.reopen to override the default settings for maxdbs and maxsize will work for all instances. then fix config to provide those overrides when setting up dbs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants