I am writing a complex logic to calculate sales and customer bonuses. I have million of records to calculate bonuses.
I want expert opinions so that mathematical operation don't take much time to display result on web page.
So where I need to write calculation part? In SQL Server Queries (Using Stored Procedure and functions) or ASP.NET & C#.Net (Business Logic layer)?
Which one is the best practice? Processing on Database server or Processing on Application server?
Regards
Mohsin JK
materialized views. en.wikipedia.org/wiki/Materialized_view