View Single Post
Old November 16th, 2009, 07:37 PM   #8 (permalink)
benFF
Member
Verified Customer
 
Join Date: Dec 2004
Location: Osaka
Posts: 158
If Classifieds search was changed to use temp table records like Photopost it would be much easier.

The search records could then store the distance in a field and this could be sorted on. Would just need the distance calculation done in mySQL at run time on the first search.

The other way of course would be to run the calculation on *every* search / category view. Though this might be quite costly, I'm not sure how much CPU time that would take. The benefit though would be it could be used on category viewings too, not just searches.
benFF is offline   Reply With Quote