Re: optimizing a geo_distance() proximity query - Mailing list pgsql-performance

From Bruno Wolff III
Subject Re: optimizing a geo_distance() proximity query
Date
Msg-id 20070205202209.GA20382@wolff.to
Whole thread Raw
In response to Re: optimizing a geo_distance() proximity query  (Mark Stosberg <mark@summersault.com>)
List pgsql-performance
On Mon, Feb 05, 2007 at 14:47:25 -0500,
  Mark Stosberg <mark@summersault.com> wrote:
>
> This is also interesting. Is this approach practical if I want to index
> what's near each of about 40,000 US zipcodes, or the approach mostly
> useful if you there are just a small number of fixed points to address?

I think the answer depends on what your data model is. If you treat each
zip code as having a location at a single point, the earth distance stuff
should work. If you are trying to include the shape of each zip code in
your model and measure distances to the nearest point of zip codes, then
you will probably be better off using postgis.

pgsql-performance by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: optimizing a geo_distance() proximity query
Next
From: Mark Stosberg
Date:
Subject: Re: optimizing a geo_distance() proximity query (example and benchmark)