graphprotocol / graphprotocol/graph-node
[Feature] Add a graphman command to re-create full-text-search columns (tsvector)
未关闭
还没有人认领这个 Issue。
area/graphman
enhancement
ops
Stale
- 主要语言
- Rust
- 星标
- 3.2k
- 派生
- 1.1k
- 平均合并
- 4 天 1 小时
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 graphman 命令的入口点开始,检查数据库维护命令的结构。使用 issue 中用于更新 tsvector 和检查 null 的 PostgreSQL 查询作为行为参考;当 graphman 能够重新创建全文搜索列并识别 null 值时,即表示完成。未指定文件路径或测试路径,并且 issue 表明其作者计划实现它。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgres, rust
- 领域
- cli, databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100