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
${query.length>0 ? `AND ${query.join(' AND ')}` : ''}
A standard spatial index on the point geometry column won't be used (unless maybe the points are stored in 3857, but most I suspect are probably 4326). However regardless of srid on the geometry column, we can always add an expression (functional) index:
CREATEINDEXmytable_geom_3857_idxon mytable USING gist (ST_Transform(geom, 3857));
Which will of course speed up ST_INTERSECTS queries for all the tile requests.
Given that all the point intersection queries are executed with srid of 3857:
clusterbuster/lib/queries/base.ts
Lines 16 to 24 in a47d246
A standard spatial index on the point geometry column won't be used (unless maybe the points are stored in 3857, but most I suspect are probably 4326). However regardless of srid on the geometry column, we can always add an expression (functional) index:
Which will of course speed up ST_INTERSECTS queries for all the tile requests.
PS - Was https://github.com/datalanche/node-pg-format or similar considered to more safely create parameterized queries?
The text was updated successfully, but these errors were encountered: