[google-appengine] Re: GQL: Computed column

2009-03-27 Thread Will
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

[google-appengine] Re: GQL: Computed column

2009-03-25 Thread Adam
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