graphprotocol / graphprotocol/graph-node
[Feature] Add a graphman command to re-create full-text-search columns (tsvector)
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Description
Reasoning: We hit an issue where some entries in a full-text-search column were actually null.
While the cause is unknown and that situation may not be relevant to other indexers (?), the fix was actually trivial:
update sgdXXX.subgraph_meta set
subgraph_metadata_search = to_tsvector('english', COALESCE(display_name,'')) || to_tsvector('english', COALESCE(description, ''))
where subgraph_metadata_search is null
This mechanism (as well as searching for null values in that fulltext-search columns, for sanity checking), could easily be implemented in graphman for the next person who hits this.
Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.
No response
Some information to help us out
- Tick this box if you plan on implementing this feature yourself.
- I have searched the issue tracker to make sure this issue is not a duplicate.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
graphman コマンドのエントリーポイントから始め、データベース保守コマンドがどのように構成されているかを確認します。動作の基準として、issue にある tsvector を更新する PostgreSQL クエリと null チェックのクエリを使用します。graphman で全文検索用のカラムを再作成し、null 値を特定できれば完了です。ファイルパスやテストパスは指定されておらず、issue ではその作成者が実装を予定していたことが示されています。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- postgres, rust
- 領域
- cli, databases
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100