newsapps/django-boundaryservice — pull request #24 by rhymeswithcycle (2011-12-17 19:54:10+00:00)
Title: Peformance optimization to BoundarySet resource

I was running into some performance issues with boundary-set/ URLs -- they were doing the equivalent of SELECT * FROM boundaryservice_boundary, which meant asking PostGIS for a lot of rather hefty polygons.

This changes that to a SELECT id, slug FROM boundaryservice_boundary, which in my use case helped performance quite a bit.