feat: cache geojson data for vector files

This commit is contained in:
2026-07-01 17:40:25 +05:00
parent ec8a014e82
commit d5c291fb9b
6 changed files with 235 additions and 69 deletions

View File

@@ -0,0 +1,8 @@
-- +goose Up
-- Pre-assembled GeoJSON FeatureCollection served by the /datasets/{id}.geojson
-- endpoint. Generated at processing time for vector and vector_with_kato
-- datasets (NULL until generated / for rasters).
ALTER TABLE datasets ADD COLUMN geojson JSONB;
-- +goose Down
ALTER TABLE datasets DROP COLUMN geojson;