graphprotocol / graphprotocol/graph-node
How to remove subgraph data
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Hey guys, I'm using a self-deployed graph-node connected to a custom chain. All works well, but its running out of storage quickly and I suspect there might be unused subgraph data.
When I run graph remove <SUBGRAPH_NAME> --node <ip> does this remove the DB data in postgres or it just unlinks the subgraph from its name? If it doesn't remove DB data what are the ways to do so?
I apologize if there is a duplicate issue, but I spent some time searching and couldn't find anything.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the behavior of graph remove <SUBGRAPH_NAME> --node <ip> in the graph-node CLI and its PostgreSQL data handling. Determine whether removal deletes database data or only unlinks the subgraph, then document the supported way to reclaim unused storage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres
- Domain
- cli, databases, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100