Blockstream / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
301 stars 125 forks source link

Speed up utxo API enpoint #84

Closed zhujiaye closed 4 months ago

zhujiaye commented 4 months ago
  1. Currenty we will join history db to get confirmed block meta for every funding transaction and spending transcation when iterate over all history transactions for specific address when getting utxos which will call history_db.get() every transaction. Thus slower the utxo API endpoint
  2. After change we can only use confirmed_height to query block from in-memory indexed headers meta to speed up the process, which will significantly improve the utxo API endpoint performance