[postgis-users] caching distance calculations

Paul Ramsey pramsey at cleverelephant.ca
Mon Dec 22 08:58:13 PST 2008


Totally up to you... depends on how it fits your application. It's not
a bad design pattern, by any means, and it does provide guaranteed
performance, assuming your data doesn't change too much.

What are you doing this distance calculation set in aid of?

P

On Mon, Dec 22, 2008 at 8:52 AM, Matthew Rushton <mrushton7 at yahoo.com> wrote:
> Hi,
>  We recently switched from mysql to postgres to get the great spatial support and are looking to leverage it a bit more. One area we are looking at would require a great number of distance calculations (from point to polygon) to be made frequently which we think would be a huge bottleneck. I imagine this a common performance issue others have hit. What is the recommended course of action? Does the database do any caching for example on ST_Distance calculations? My assumption is no. If that's the case does it make sense to do the calculations once and store them in the db (in our case it's the same large set of distance calculations that are made)? I'm just wondering if this is a common practice or discouraged? Thanks.
> -Matt
>
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list