asp.net mvc - Best practises for a Web Api -


i have movies table basic information , reviews table revies movies.

in app want show list name , avg score of movie. best practise?

do store avg field in movies table , use api/movies?

do have api return movies including reviews reviews , calculating in app (i guess not).

or necessary calcs on server , return view model needed?

have calcs done on server/database. assuming have back-end db store sql server, write query, stored procedure, or view calc on demand. don't need calculate on client (this slow , cause need transfer data) , don't need store average anywhere.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -