deephacks / lmdbjni

LMDB for Java
Apache License 2.0
204 stars 28 forks source link

Asynchronus batched commits #22

Closed krisskross closed 9 years ago

krisskross commented 9 years ago

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.

phraktle commented 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).

krisskross commented 9 years ago

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?