Support GIN indexes for queryables
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- helm, postgresql, python
- Ambito
- databases, infrastructure
Direzione di ricerca
Start by inspecting the Helm values and chart definitions for queryable indexFields, then read the pypgstac issue linked as #484 and the pgSTAC settings-table approach. Done means GIN can be selected for array fields, BTREE remains the default, and the resulting database state is version-controlled and repeatable without manual SQL changes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When we load "queryables" (the list of fields you're allowed to search/filter on in STAC) into pgSTAC, we use pypgstac. This tool builds a search index for each field so lookups are fast, but it only ever builds one kind of index: BTREE.
That's a problem for fields that hold lists of values (arrays), like a tags or categories field. To search those fast, Postgres needs to build a GIN index, which is built specifically for searching inside lists. There's currently no setting/flag in the pypgstac to ask for GIN instead, it always picks BTREE for you.
@bitner confirmed this in this comment: the only way to actually change the index type right now is to log into the database and manually run a SQL command to fix it. We don't want to do that, because it means the database no longer matches what's written in our Helm chart / git repo. The next person who redeploys wouldn't know that manual change ever happened.
Ideas
Keep everything defined in our Helm values (no manual database edits), but add a way to say which index type each field should get. For example:
indexFields:
- name: "tags"
type: "gin"
- name: "roles" # no type = keep using BTREE, like today
Behind the scenes, the job either needs to set the index type for each field directly in pgSTAC's own settings table, or pypgstac adds support for defining the index type (see https://github.com/stac-utils/pgstac/issues/484)
The point is, we want to automate the changes instead of doing it by hand, so it stays version-controlled and repeatable.
- Lingua principale
- Python
- Stelle
- 34
- Fork
- 17
- Merge medio
- 1g 9h
- PR unite (30g)
- 56
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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.
Altre issue di developmentseed/eoapi-k8s
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
developmentseed/eoapi-k8s#713 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
developmentseed/eoapi-k8s#708 · 5 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
developmentseed/eoapi-k8s#703 ·
I maintainer di solito rispondono entro 1 giorno
-
ci: proposal of vulnerability scanning pipeline of the chart's imagesForse già presa @lhoupert l’ha presa 16 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
developmentseed/eoapi-k8s#685 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
developmentseed/eoapi-k8s#681 · 5 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di developmentseed/eoapi-k8s
Issue simili
-
Task select patterns with uppercase letters never matchForse già presa @manobhisriram l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
app: scripts status: backlog type: housekeeping
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
netbox-community/netbox-scripts#239 ·
I maintainer di solito rispondono entro 1 giorno
-
Lambda deploys fail once the bundle grows by about 254 KBForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
developmentseed/titiler-cmr#341 ·
I maintainer di solito rispondono entro 1 giorno
-
Card tables add "..." to every value in a DataFrame column when any value is longer than 30 charactersForse già presa @omkarbandikatte l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno