graphprotocol / graphprotocol/graph-node

How to remove subgraph data

オープン
#6,052 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

documentation Stale
主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、graph-node CLI における graph remove <SUBGRAPH_NAME> --node <ip> の動作と、PostgreSQL データの処理を確認します。削除によってデータベースのデータが削除されるのか、それとも subgraph のリンクが解除されるだけなのかを判断し、その後、未使用のストレージを回収するためにサポートされている方法を文書化します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
postgres
領域
cli, databases, documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。