I want to write a lot of data to a lmdb data base with several named (sub) data bases. I run into the following problem:
- To write to one named data base, I need to open a transaction for this named data base.
- This implies: To write to another named data base, I need to open a different transaction.
- Two write transaction inside the same main data base cannot exist at the same time.
- This implies: I need to commit and close a transaction each time I want to switch from writing to one named data base to writing to another named data base.
- Creating and committing write transactions is a really slow operation.
I rather would like to keep one long-running write transaction for all write operations and commit it once --- when all the work is done.
Is this possible with lmdb (if yes, at which point did I err in my analysis)?