https://bugs.openldap.org/show_bug.cgi?id=10138
Issue ID: 10138 Summary: Allow generating multiple nested read transactions from a write transaction Product: LMDB Version: 0.9.30 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: renault.cle@gmail.com Target Milestone: ---
Hello,
I have a feature request. Would it be possible to read a database from the point of view of a non-yet-committed write transaction?
What I want to do is to write a lot of entries into a database, use a couple of threads to read those entries (using MDB_NOTLS) to generate a lot of new entries (that will be written to disk and then once the generation is done, drop the read-transaction handles and write (with MDB_APPEND) those new entries from disk into LMDB.
This would have been possible if I had committed the first entries, but unfortunately, it is impossible. I need to do this in the same transaction.
Have a great day, kero