Skip to content

Commit

Permalink
Bug fix: Ensure spatial index on geometries (postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Dec 15, 2024
1 parent b8bd646 commit e39d1bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/tables/geometries.postgres.schema
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit e39d1bf

Please sign in to comment.