graphprotocol / indexer-rs

Rewrite of indexer-service in Rust with TAP payments implementation
Apache License 2.0
20 stars 19 forks source link

Optimization: Batch inserts of receipts on indexer-service #284

Closed gusinacio closed 1 month ago

gusinacio commented 1 month ago

Describe the feature Currently, we insert one row per new receipt. The problem is that this affects the throughput, especially on p99 with multiple concurrent requests.

A suggestion to solve this is create a mpsc to store all the receipts in batch.