-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: poc retrieve ddo claims in loop #13
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Miroslav Bajtoš <[email protected]>
sector, | ||
payload_cid | ||
) | ||
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9 ,$10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running one SQL query per deal will take a long time to complete when there are hundreds to thousands of deals per block.
We should insert deals in one SQL query, check how spark-evaluate does it with stats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created caching. We can adjust the number of deals to be cached. Usually it is between 20-70 claim events per block right now.
This PR proposes the following changes: