FuelLabs / fuel-core

Rust full node implementation of the Fuel v2 protocol.
Other
58.19k stars 2.76k forks source link

P2P is doing a lot of database lookups #2023

Open xgreenx opened 2 months ago

xgreenx commented 2 months ago

When we request transactions for the block, each transaction requires a separate lookup, which is very expensive, considering that transactions are randomly distributed throughout the database(because of randomness of TxId).

image image
Voxelot commented 1 month ago

Without changing the structure of the db to store full blocks instead of compact blocks, the most practical improvement with minimal changes would be to change this to a multi-get operation.

rymnc commented 2 weeks ago

Taking this up :)