Im pretty new to backend web design, but I am building a webapp and will have a database of locations. As the database gets big, I realized that if I want people to be able to access the database and say, for example, see points around them, it would take a long time to go through every element and check the distance from them to any given point.
Does anyone know of a way to quickly check the database, but maybe only relevant locations?
Im using python, django, and SQL if that makes any difference.