I have successfully created a zip code radius search, but the performance is
unacceptable.
I have two tables. The first is 52K zip codes w/lat and long. The second is
3K national business addresses.
Using the zip code 10010, it takes almost 60 seconds to return 122
businesses within a 25 mile radius. This slowdown is almost entirely due to
the query radius distance formula.
I wonder if someone knows the formula to calculate the distance within a
given square. Would this increase performance? I presume the results would
include zips in the "corners", but performance boost might be worth it.
Thanks in advance.
unacceptable.
I have two tables. The first is 52K zip codes w/lat and long. The second is
3K national business addresses.
Using the zip code 10010, it takes almost 60 seconds to return 122
businesses within a 25 mile radius. This slowdown is almost entirely due to
the query radius distance formula.
I wonder if someone knows the formula to calculate the distance within a
given square. Would this increase performance? I presume the results would
include zips in the "corners", but performance boost might be worth it.
Thanks in advance.
Comment