Answer by Paul Ramsey for Improve performance of a PostGIS st_dwithin query
The explain doesn't show an index coming into play, which could be for two reasons:You don't have one. So make one with CREATE INDEX tree_gix ON trees USING GIST (geom)Your data is in geographic...
View ArticleImprove performance of a PostGIS st_dwithin query
I am doing a local statistic, similar to the the one described in an earlier question / answer:SELECT a.tree_id, a.species, avg(b.age) as age_avg, count(*) as samples, a.geomFROM trees a LEFT JOIN...
View Article
More Pages to Explore .....