I'm using a modified version of the django-voting app to handle the
rating of objects on a site I'm working on.  I'd like to figure out a
way to display the rank of an object in relation to all other objects
in the same model.  It would seem that I would have to calculate the
average rating of all objects (im using a scoring system, not + or -
1), order them by their rating, then assign a numeric value to each
object starting at 1.  Unfortunately however, this seems like it would
be an incredibly demanding process, especially with hundreds or
thousands of objects that you're trying to compare, and new votes
being added constantly.  Not only that, it seems like a waste of
resources if, let's say, you only needed the rank for one object for a
particular context.  From a Django perspective, what would be the best
way to approach this problem?  Can you think of a more efficient way
to process this information?  Can you show me any Django query/
database api examples that would allow for this?  Any links, tips, or
advice would be appreciated.
--~--~---------~--~----~------------~-------~--~----~
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