colouring-montreal/migrations/002.index-core.up.sql
2018-09-25 20:46:05 +01:00

8 lines
324 B
SQL

-- Create indexes after bulk loading geometries and building records
-- Spatial index over building outlines
CREATE INDEX geometries_idx ON geometries USING GIST ( geometry_geom );
-- Index over building geometry (expect to look up building by geometry_id)
CREATE INDEX building_geometry_idx ON buildings ( geometry_id );