Blockstream / electrs

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

Speed up utxo API enpoint #84

Closed zhujiaye closed 6 months ago

zhujiaye commented 6 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