Skip to content

Commit

Permalink
refactor: use gist index over gin for simple geom table
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 9, 2025
1 parent 18a068a commit 7ea8d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/migrations/003-jsonb-geom-geometry-log.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ALTER TABLE geometrylog
ALTER COLUMN id TYPE UUID USING gen_random_uuid(),
ALTER COLUMN id SET DEFAULT gen_random_uuid();

CREATE INDEX IF NOT EXISTS idx_geom_gin ON geometrylog USING gin (geom);
CREATE INDEX IF NOT EXISTS idx_geom_gin ON geometrylog USING gist (geom);

-- Commit the transaction
COMMIT;

0 comments on commit 7ea8d4b

Please sign in to comment.