graphprotocol / graphprotocol/graph-node

How to remove subgraph data

Open
#6,052 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation Stale
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.