~dooferlad/patchwork/niceties

  • 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>
Filename Latest Rev Last Changed Committer Comment Size
..
apps 1 15 years ago Jeremy Kerr Inital commit Signed-off-by: Jeremy Kerr <jk@ozla Diff
docs 1 15 years ago Jeremy Kerr Inital commit Signed-off-by: Jeremy Kerr <jk@ozla Diff
htdocs 1 15 years ago Jeremy Kerr Inital commit Signed-off-by: Jeremy Kerr <jk@ozla Diff
lib 1 15 years ago Jeremy Kerr Inital commit Signed-off-by: Jeremy Kerr <jk@ozla Diff
templates 1 15 years ago Jeremy Kerr Inital commit Signed-off-by: Jeremy Kerr <jk@ozla Diff
tools 187 13 years ago Jeremy Kerr tools: Add a simple sample Git post-receive hook Diff
.gitignore 45 15 years ago Jeremy Kerr Exclude packages tree from separate .gitignore fil 340 bytes Diff Download File