Hi,
I'm developing a system where customers can rate Shops.
the question is, in a shop profile, when i want to show the numbers of products she sells and the average rating it got, do i need to query the rating table each time and calculate the data each time or should i save a field in the Shop table - RatingAverage which is update each time the shop is rated by some one.
The same question about the number of sells - save a counter that update each purchase - or query the deals (count the numbers of deals with the specific shop)?
which way is better?
thank's a lot
Amit