I am storing latitude and longitudes of users in a table. Number of users will be really large. I want a way to find out near most users (latitudes, longitudes) for a given user (latitude, longitude). I am keen about accuracy and performance.
Form whatever I analyzed so far till now are two prominent methods being used to do this task these days
Use MySQL and Haversine Formula: (This presentation is quite popular)
Pros:
Pros:
أكثر...
Form whatever I analyzed so far till now are two prominent methods being used to do this task these days
Use MySQL and Haversine Formula: (This presentation is quite popular)
Pros:
- Quite popular around last some years
- Great accuracy by a proven formula
- Performance is major issue I saw being discussed
- Need to give distance then the query computes distances of all users withinthat area (If no user found in that distance application might got to retry with larger distance) Complex calculations involved each time.
Pros:
- New approach invented for finding nearby coordinates quickly.
- Single column search for hashtags making in quick and simple no complex calculations involved. High performance.
- There are some corner cases reported where it won't work
- Accuracy (? not sure on this)
أكثر...