NYCPlanning / deprecated-labs-zap-api

Deprecated version of the ZAP API, see https://github.com/NYCPlanning/labs-zap-api
Other
5 stars 3 forks source link

474 optimize spatial intersection #110

Closed trbmcginnis closed 5 years ago

trbmcginnis commented 5 years ago

This PR is meant to speed up the spatial querying that we use for our radius distance filter, where a user creates a point on the map and projects are filtered for a distance from that point.

Indexes were created with:

CREATE INDEX centroid_index ON project_geoms USING gist(centroid); CREATE INDEX polygons_index ON project_geoms USING gist(polygons);

Closes #474