How efficient is it to order by distance (entire table) in geodjango
问题 Assume that I have the following data model Person(models.Model): id = models.BigAutoField(primary_key=True) name = models.CharField(max_length=50) location = models.PointField(srid=4326) Assume also that I have an app that makes queries to this django backend, and the only purpose of this app is to return a (paginated) list of registered users from closest to farthest. Currently I have this query in mind: # here we are obtaining all users in ordered form current_location = me.location people