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

feat: poc retrieve ddo claims in loop #13

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

NikolasHaimerl
Copy link
Contributor

This PR proposes the following changes:

  1. Implement a POC of the backend for the deal observer. The binary retrieves and stores DDO deals in the database in a loop.

sector,
payload_cid
)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9 ,$10)
Copy link
Member

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.

Copy link
Contributor Author

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.

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

Successfully merging this pull request may close these issues.

2 participants