I have an application that does complex calculations for members. Each member can have multiple US states linked to their profile. Each state has got different calculations for each course a member completes.
As of now I have been performing the calculations in the DB (SQL Server 2008) and then sending data back to app layer where they can see their history and then download a certificate for each course.
I have a business logic layer but not a lot happens there. I know this has been asked a lot but where do you think I should perform these calculations: business layer or database? I am going back and forth!!
SUM
calculated. Why bother sending all that data around?? The database is well equipped to sum up some values, and just send back a single result - much more efficient! So whenever you need to do a lot - but return little - do it on the server. – Thacker