@Dave:

It is not a 1-to1 as I would like each borrower to provide his own
rating, and then compute the average ratings per book - to make
recommendations for the highest rated books.

Thanks for the example in the reply too. I will try out the SQL update
shortly.

@ Russ:
Thanks too for the input. I will read up on signals - this is news!
The denormalization - same comment as above. I'm going to try the SQL
computation first, then will look at signals.

The probem: I want to calculate the average rating in the BookRatings
model each time an individual rating of a book is captured in the Loan
model.


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to