Extremely slow indexing on good hardware

Open
#536 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
database

Research direction

Start by reproducing the lightmode indexing process and examining the txstore and history indexing stages, including progress through the .blk files and observed CPU and memory use. Identify the bottleneck and establish expected indexing behavior or timing; done means the cause and a measurable resolution are documented.

Written by the indexing model from the issue text.

Description

How long is it even supposed to take to do the lightmode index? I'm running a server with 2.5TB datacenter-grade SSD RAID, 64GB RAM, Intel Core i7-8700. Had Bitcoind already synced. It took probably 12hrs to index and compact txstore DB, and now it's 5th hour of history indexing and it seems to go waaay slower (currently on 300 of 4.8k .blk files) Not sure I understand what's the bottleneck here and the timeframe for the sync? CPU usage is <15%, mem 10%. Please advise!

Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.