Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2P is doing a lot of database lookups #2023

Open
xgreenx opened this issue Jul 5, 2024 · 1 comment
Open

P2P is doing a lot of database lookups #2023

xgreenx opened this issue Jul 5, 2024 · 1 comment

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Jul 5, 2024

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
Copy link
Member

Voxelot commented Jul 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants