Thanks, Adam. Guess for now, I'll settle for the solution.
Will
On Wed, Mar 25, 2009 at 10:25 PM, Adam adam.crossl...@gmail.com wrote:
I think that you should add an average_rating field to your model,
and whenever you update the total_rating and num_of_rating columns,
recompute the
I think that you should add an average_rating field to your model,
and whenever you update the total_rating and num_of_rating columns,
recompute the average rating and write that to the record as well.
Then, you can query quite simply on the average rating field. You
will, of course, need to do