mvp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
rrr-marble fc50ffdb71
fix: declarative search index
4 years ago
docker add: docker tmpfs vol 4 years ago
src fix: declarative search index 4 years ago
.gitignore initial commit 4 years ago
README.md fix: postges 12 is required for generated columns 4 years ago
geodata-catalog.code-workspace initial commit 4 years ago
requirements-dev.txt initial commit 4 years ago
requirements.txt initial commit 4 years ago

README.md

Requirements

Minimal versions

  • python 3.7
  • postgresql 12

Database schema

includes GIN index column geodata_search_idx

ALTER TABLE geodata ADD COLUMN geodata_search_ts TSVECTOR
GENERATED ALWAYS AS (to_tsvector('russian', geodata.description) STORED

(use coalese() if multiple)

CREATE INDEX geodata_search_idx ON geodata USING GIN (geodata_search_ts);