In LMDB, if you overwrite a previous entry in the same transaction, it seems that the previous entry's space is not released until the data is committed. In my application, I encountered a case where LMDB ran out of space because a particular entry was overwritten so many times, so I just increased the database size to get around this problem.
Is there a way to free unused space in LMDB to prevent this situation from happening?