What is Nostr?
laanwj /
npub1p23…rnl6
2024-11-23 22:22:54
in reply to nevent1q…u3yh

laanwj on Nostr: the logic to resize is in src/lmdb/database.cpp, in database::resize(); apparently it ...

the logic to resize is in src/lmdb/database.cpp, in database::resize(); apparently it doubles the size until it's larger than 1GB, after that it adds at most a GB at a time
it's called in database::do_create_txn
i think the biggest complication is making transactions restartable; resizing cancels the current transaction so it has to be re-issued
Author Public Key
npub1p23eukh0nxsqpfaakz6fj9vvj27y4gs0kevnrffdq4d4adkl7uuq7crnl6