graphprotocol / graphprotocol/graph-node
[Feature] Add a graphman command to re-create full-text-search columns (tsvector)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 1.1k
- Merge medio
- 4g 1h
- PR unite (30g)
- 1
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal punto di ingresso del comando graphman e analizza come sono strutturati i comandi di manutenzione del database. Usa come riferimento comportamentale le query PostgreSQL dell’issue per aggiornare tsvector e verificare i valori null; il lavoro è completato quando graphman può ricreare le colonne per la ricerca full-text e identificare i valori null. Non è indicato alcun percorso di file o di test e l’issue indica che il suo autore aveva pianificato di implementarlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- postgres, rust
- Ambito
- cli, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100