I\'ve in my database 100 000 addresses (that is records).
Each one of them has its own coordinates (latitude and longitude).
Now, given the geo location of
I would think MySQL's geo spatial extensions would solve this for you: http://dev.mysql.com/doc/refman/5.7/en/gis-introduction.html
Otherwise you could index on lattitude then query WHERE lattitude > userLat-5miles and lattitude < userLat+5miles. That would massively reduce the number of possible rows to process in the application layer.