Timestamp:
Mar 24, 2010, 6:34:54 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
13e7c01
Parents:
ed4ccc7
git-author:
Alex Dehnert <adehnert@…> (03/24/10 06:34:54)
git-committer:
Alex Dehnert <adehnert@…> (03/24/10 06:34:54)
Message:

Calculate totals using annotate, not aggregate

For reports like "all the accounts ever", this can
increase performance by a factor of about three
and reduce the number of database queries by a
factor of about a hundred (aka the number of rows
in the table produced).

It is substantially more complicated, though.
The original code is in a "slow = False; if slow:"
block. In theory, it'd be good to keep both codepaths
working and test them against each other.

(No files)

Note: See TracChangeset for help on using the changeset viewer.