-
Committer:
Jeremy Kerr
-
Date:
2011-07-18 13:46:08 UTC
-
Revision ID:
git-v1:539b6596dc1bf1d3118631095625e354026da373
xmlrpc: do slice before patch_to_dict
Currently, we map patch_to_dict before we slice the results (to only
return max_count patches). This means that we hacve to retrieve all
patches, then throw away most of the results of the map.
This change does the slice on the patches before the map, letting django
do a LIMIT-ed query instead.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>