Closed krisskross closed 9 years ago
The usefulness of this depends on the circumstances. I don't think a general mechanism for this should be built in to the core lmdbjni API. The low-level API should match the basic LMDB functionality as much as possible.
If provided, this should be in a cleanly separated higher utility layer (similar to issue https://github.com/deephacks/lmdbjni/issues/12).
Yes, I think you're right. A separate util layer is more appropriate. Maybe even a separate jar so that users can choose to add it or not?
This is a question to users of LMDB JNI so please speak your opinion.
Is an API for doing batched asynchronous commits into LMDB something useful or would it only add unnecessary complexity? This is not related to
MDB_MAPASYNC
.Database.batch(DirectBuffer key, DirectBuffer value)
DirectBuffer
key/value to avoid copies.