WebOfTrust / keripy

Key Event Receipt Infrastructure - the spec and implementation of the KERI protocol
https://keripy.readthedocs.io/en/latest/
Apache License 2.0
56 stars 53 forks source link

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

Open rodolfomiranda opened 3 weeks ago

rodolfomiranda commented 3 weeks ago

Feature request description/rationale

In PR https://github.com/WebOfTrust/keripy/pull/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 commented 3 weeks ago

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.