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

Investigate SubQuery as a substitute for QueryAPI #928

Closed
Tguntenaar opened this issue Aug 22, 2024 · 3 comments
Closed

Investigate SubQuery as a substitute for QueryAPI #928

Tguntenaar opened this issue Aug 22, 2024 · 3 comments
Assignees
Labels
Enabler Work to enable future tickets (e.g. architecture, infrastructure, compliance, etc).

Comments

@Tguntenaar
Copy link
Collaborator

Tguntenaar commented Aug 22, 2024

Affected Portal:
All

Description:
Provide a clear and concise description of the bug. What exactly is happening that should not?

The QueryAPI is going to be deprecated. So we will need to migrate all portals from QueryAPI to another solution. SubQuery seems like a good option on the surface, however that needs to be investigated further.

A good start would be to make a working prove of concept to see if we are able to index historical data.

User Type:
All users

Expected behavior
We want the data to be indexed in a simlar fashion as we do now. Ideally all functionality stays the same we just move away from pagoda's QueryApi service.

Priority
Critical (P0) – Cannot complete critical action

Additional Context
Include any other relevant information that might help diagnose the issue, such as error messages or other observations.

@Tguntenaar Tguntenaar added the bug Something isn't working label Aug 22, 2024
@Tguntenaar Tguntenaar self-assigned this Aug 22, 2024
@Tguntenaar Tguntenaar moved this from 🆕 Triage to 🏗 In progress in 🚀 DevHub Products Aug 22, 2024
@Tguntenaar Tguntenaar added Enabler Work to enable future tickets (e.g. architecture, infrastructure, compliance, etc). and removed bug Something isn't working labels Aug 23, 2024
@Tguntenaar
Copy link
Collaborator Author

While trying to work with the near example of subquery network, I ran into a few minor issues and a blocker. For that I've created an issue in the subql repository.

@Tguntenaar
Copy link
Collaborator Author

I've planned in a call with @petersalomonsen on Thursday to have some extra eyes looking at this. For now I will be picking up another issue.

@Tguntenaar
Copy link
Collaborator Author

@frol @petersalomonsen Closing this issue as the Subquery network indexer feels like overkill for our use case. With only 200 proposals annually, we don't need such a complex solution. Indexing an entire year would involve making RPC calls for 25 million blocks, even with batching and skipping historical blocks.

Additionally, the cost is $150 per indexer per month. To address this, @petersalomonsen and I discussed merging the event-committee, infra, and devhub indexers into one using composite IDs. However, this approach would still be more expensive than implementing an RPC caching layer, which I’ve outlined in issue #948.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 🚀 DevHub Products Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enabler Work to enable future tickets (e.g. architecture, infrastructure, compliance, etc).
Projects
Status: Done
Development

No branches or pull requests

1 participant