Simple Aggregation

0 views
Skip to first unread message

flo...@gmail.com

unread,
Jul 30, 2007, 5:02:23 AM7/30/07
to Django developers
Hello,

Today I spun off the (simplistic) aggregation features of a site that
I'm building and made it a generic app. It's useful for keeping track
of certain kinds of counting and summing, etc. (especially if count(*)
is O(n) for your database engine, this brings that down to O(1)). For
example, a voting application is made near-trivial using this project,
and is done in the tutorial section of the google code page.

The google code page is located here:
http://code.google.com/p/django-simpleaggregation/

I only post this to the developers section because if it's useful to
enough people someday maybe it could be brought in as a contrib app.
For now, though, I just hope it helps someone out!

Thanks,
Eric Florenzano

Russell Keith-Magee

unread,
Jul 30, 2007, 7:21:27 AM7/30/07
to django-d...@googlegroups.com
On 7/30/07, flo...@gmail.com <flo...@gmail.com> wrote:
>
> Hello,
>
> Today I spun off the (simplistic) aggregation features of a site that
> I'm building and made it a generic app.

Hi Eric,

Aggregation is a feature that has been planned for Django for some
time. It's actually the reason I started contributing to Django in the
first place. However, a lot of things have taken priority.

I hope to be looking at this feature soon. In the meantime, ticket
#3566 is tracking the thoughts various people (including myself) have
had on the topic.

Yours,
Russ Magee %-)

flo...@gmail.com

unread,
Jul 30, 2007, 11:44:25 AM7/30/07
to Django developers
Hello,

I know that that's the case, and each proposal for that aggregation
feature looks better than the last! But, in the interim, there's
this. Also, this is denormalized, so it may even useful for
performance reasons after the aggregation framework is completed. (Why
compute SUM(some list) every time when you can keep track of it
incrementally every time that list is modified?)

Thanks,

On Jul 30, 4:21 am, "Russell Keith-Magee" <freakboy3...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages