Skip to content

[Subgraph] add indexerHints section with prune option in template.yaml#3771

Merged
portuu3 merged 2 commits intodevelopfrom
feat/subgraph/prune-option
Feb 10, 2026
Merged

[Subgraph] add indexerHints section with prune option in template.yaml#3771
portuu3 merged 2 commits intodevelopfrom
feat/subgraph/prune-option

Conversation

@flopez7
Copy link
Contributor

@flopez7 flopez7 commented Feb 2, 2026

Issue tracking

Close #3764

Context behind the change

Add prune: auto option in subgraph.yaml. This will automatically clean up old historical data, keeping the Indexer efficient and our response times shorter

How has this been tested?

Deployed a test version on polygon and executed a benchmark. Requests times have decreased considerably, practically halving for historical requests.
image

Release plan

Deploy new Subgraphs

Potential risks; What to monitor; Rollback plan

None

@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
human-app Ready Ready Preview, Comment Feb 10, 2026 4:41pm
human-dashboard-frontend Ready Ready Preview, Comment Feb 10, 2026 4:41pm
staking-dashboard Ready Ready Preview, Comment Feb 10, 2026 4:41pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Feb 10, 2026 4:41pm
faucet-server Ignored Ignored Feb 10, 2026 4:41pm

Request Review

@flopez7 flopez7 assigned flopez7 and unassigned portuu3 Feb 2, 2026
@flopez7 flopez7 requested a review from portuu3 February 2, 2026 15:29
portuu3
portuu3 previously approved these changes Feb 6, 2026
@Dzeranov
Copy link
Contributor

Dzeranov commented Feb 9, 2026

@portuu3 @flopez7
Did you guys check how exactly works auto pruning? Don't want to run into a situation where we lose some data (e.g. about operators created a long time ago without any updates to the entity). Does it remove old states or cleans up not used entities altogether?

@flopez7
Copy link
Contributor Author

flopez7 commented Feb 9, 2026

No worries @Dzeranov, prune: auto only removes historical states, not current data. Even if an operator was created years ago and never updated, its latest state is always preserved; you only lose the ability to perform 'time travel' queries on its past versions, which we don't use anyway. I also ran a script making random calls to both the newly deployed subgraph and the previous version to verify the data is identical. All looks good.

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.

[Subgraph] Investigate optimizations

3 participants