From e39d1bf85bb2ff42de3b3a94bcc2de652f6944d3 Mon Sep 17 00:00:00 2001 From: thisisaaronland Date: Sun, 15 Dec 2024 09:04:55 -0800 Subject: [PATCH] Bug fix: Ensure spatial index on geometries (postgres) --- sql/tables/geometries.postgres.schema | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/tables/geometries.postgres.schema b/sql/tables/geometries.postgres.schema index 2284836..a111c69 100644 --- a/sql/tables/geometries.postgres.schema +++ b/sql/tables/geometries.postgres.schema @@ -7,5 +7,6 @@ CREATE TABLE {{ .Name }} ( lastmodified BIGINT ); +CREATE INDEX {{ .Name}}_by_geometry ON geometries USING GIST(geometry); CREATE UNIQUE INDEX {{ .Name }}_by_id ON {{ .Name }} (id, alt_label); CREATE INDEX {{ .Name }}_geometries_by_lastmod ON {{ .Name }} (lastmodified);