-
Notifications
You must be signed in to change notification settings - Fork 23
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
Value of mdb_mapsize in lmdb-safe.cc #2
Comments
Having this a constant is indeed not great (for starters, the default constant isn’t going to work on 32 bit systems at all). I’m not sure what a good way of setting it would be though, given that the Environment is essentially a (per file descriptor) singleton:
I don’t have necessarily good answers. I have a proposal, but it’d be hard to implement and get right:
Would that work? Would it make sense? |
Sorry for the late reply. Error handling strategies may differ in different libraries / systems. It will be difficult to debug if these strategies are different. |
Hi there, thanks for the great job for this neat project.
But I have a question in
lmdb-safe.cc
, line 30 - 31:But 16ULL * 4096 * 244140ULL != 4GB (4 * 1024 * 1024 * 1024?). Is it a typo or a purposed feature? Not sure about it.
And it will be great if users can set some configs when getting the env, especially those can only be set after calling
mdb_env_create()
but beforemdb_env_open()
, (e.g.maxdbs
). Is there any plan for this? Maybe something like wrapping those configs in a class and pass it when callinggetMdbEnv()
.Thanks.
The text was updated successfully, but these errors were encountered: