I have a mysql (5.0.22) myisam table with roughly 300k records in it and I want to do a lat/lon distance search within a five mile radius.
I have an index that cov
Depending on the number of your listings could you create a view that contains
Listing1Id, Listing2ID, Distance
Basically just have all of the distances "pre-calculated"
Then you could do something like:
Select listing2ID from v_Distance d where distance < 5 and listing1ID = XXX