Search code examples
golmdb

Generate big ( ~300MB) LMDB file


I am generating a huge LMDB file close to 300 MB and it takes hours in Golang. Is there a way to generate it within minutes? I am open to use any other language.


Solution

  • If you are committing the transaction after every single write, avoid it. Commit the transaction after completion of all writes.