graphprotocol / graphprotocol/graph-node
How to remove subgraph data
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、graph-node CLI における graph remove <SUBGRAPH_NAME> --node <ip> の動作と、PostgreSQL データの処理を確認します。削除によってデータベースのデータが削除されるのか、それとも subgraph のリンクが解除されるだけなのかを判断し、その後、未使用のストレージを回収するためにサポートされている方法を文書化します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- postgres
- 領域
- cli, databases, documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100