-
Notifications
You must be signed in to change notification settings - Fork 82
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
Question : Database with DatabaseOpenFlags.DuplicatesSort how to store data bigger than 512 bytes ? #148
Comments
|
Actually, nvm. I see some code in LMDB that can cause this, i'm trying to interpret it |
So, I've confirmed that when running under DUPSORT the max size of a value is limited to the max key size (normally 511 bytes). It is an internal LMDB thing 🤷♀️. See also: https://github.com/LMDB/lmdb/blob/4b6154340c27d03592b8824646a3bc4eb7ab61f5/libraries/liblmdb/mdb.c#L7599 Recommended workaround is to have a 2nd table/database that is not DUPSORT. Database A: DUPSORT Database 2 : Not DUPSORT |
I apparently also made a note about this in my other issue. I guess I forgot about it 🙃. |
Thank you very much for your confirmation, i think i've been burned by this in the past but apparenty i forgot too 😄 |
Let me know if you have any other questions |
Thank you very much :D |
Hi,
i'm having hard time to find docs about it, but it looks like that when database is opened with DatabaseOpenFlags.DuplicatesSort there is a limit on the data value that can be stored, at last i reach an exception when the value is more thatn 512 bytes.
Thank you
The text was updated successfully, but these errors were encountered: