Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: Is there any research on different key-value DBs suitable for bitcoin?
by
ETFbitcoin
on 26/12/2020, 12:27:00 UTC
⭐ Merited by Coding Enthusiast (1)
Not research, but apparently Electrum uses JSON to store the wallet content. But obviously it's not efficient since it's written on pure Python and JSON doesn't scale well.
There's discussion about JSON alternative for Electrum at https://github.com/spesmilo/electrum/issues/4823, you might find one or two interesting idea.

For example, Bitcoin Core currently uses LevelDB for the UTXO set and all indexes (block index, transaction index, block filter index). Berkeley DB and SQLite (in 0.21 for descriptor wallets) are used for the wallet.

Are there any particular reason why Bitcoin Core uses Berkeley DB & LevelDB while both of them are key-level database? I imagine it's easier to maintain Bitcoin Core source code if only one of the is used.