janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.57k stars 1.18k forks source link

How do I improve performance? #577

Closed 3ntranced closed 1 year ago

3ntranced commented 1 year ago

Describe the new feature or enhancement

https://bitcoinexplorer.org/ returns bc1qxhmdufsvnuaaaer4ynz88fspdsxq2h9e9cetdj within seconds. But my instance doesnt times out after about 8 minutes. Are you using electrs for addresses? What do I need to do to get improvement in performance?

3ntranced commented 1 year ago

which electrs, electrumx does https://bitcoinexplorer.org/ use?

Thierry61 commented 1 year ago

which electrs, electrumx does https://bitcoinexplorer.org/ use?

I guess the explorer is NBXplorer because when displaying the list of peers there is a node with this unusual node subversion string: NBXplorer--2085976709189660429

pointbiz commented 1 year ago

I'm also interested in any advice here. I'm seeing similar issues with my btc-rpc-explorer instances. One is using ElectrumX the other uses ElectRS. Both take minutes to return an address that returns in seconds with bitcoinexplorer.org

I've tried to turn on all the caching. In memory and disk. Didn't improve the situation.

pabpas commented 1 year ago

You want a fast electrumx replacement and fulcrum is the fastest: https://github.com/cculianu/Fulcrum

I just tried the OP address on a low end machine and took seconds.

3ntranced commented 1 year ago

i think blockstream electrs esplora has the best performance

janoside commented 1 year ago

BitcoinExplorer.org currently uses fulcrum.