Chain Indexer Thread Pool
This project is an experiment in high performance blockchain indexing.
Current Results
Indexing 970,000 blocks from local node into local DB
- total time: 2m24.509831517s
- blocks per second: 6718.227656343288
Note: these results were obtained on a machine with
- 18cores/36threads
- 32GB RAM
- M.2 NVME
Additional performance tuning is required for Postgres and these commands are included in the docker-compose.yml file
Getting Started
Create a config file and adjust parameters as needed
cp config-example.toml config.toml
Run
go run main.go