simonbun wrote:
> If your situation allows it, you could de-normalize and save the count
> result in a separate table. Then you need to adjust the count whenever
> you add / delete a row ofcourse.

We keep a set of 'stats' tables which count various things in the 
database (nr of comments, number of favorites, etc...). Using stored 
procedures there are updated once in a while, depending on how quick 
it's needed.

I could be wrong of course, but perhaps you don't need an always 
up-to-date count of over 2mil entries...?


  - bram

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to