I'm trying to make a unqlite backend for libgit2 to replace the native file system. But I found sometimes if I don't use unqlite_begin/unqlite_commit, the generated database file would be corrupt. But once I strictly use the transaction APIs, it also becomes extremely slow, slower than native file system, 5 times. Is there any good solution for this situation ? Thanks a lot !