You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c5fc677
Browse filesBrowse the repository at this point in the historyBrowse files
fix(postgres): let distanceLessThan use the spatial index
ST_Distance(a, b) < d cannot be served by a GIST index, so radius queries
filtered every row while walking the primary key.
Without meters, distanceLessThan now leads with ST_DWithin on the geometry
column. With meters on a point column and a point value, it leads with a
degree box (&& ST_Expand) that holds every point within range on the WGS84
spheroid. Lines and polygons, and boxes that would reach a pole or the
antimeridian, keep the exact geography comparison only. The exact
ST_Distance check stays in every case, so the boundary remains exclusive.
0 commit comments