QuoteReplyTopic: Calculations on server Posted: 30-Nov-2011 at 8:48pm
In our app we have to do a few balance calculations, involving dates, so we don't want to bring back all this data to the client and calculate it there.
On one of our search screens we would like to show the current balance for the customer, and filter by customers with a balance. When you are dealing with many results, bringing back all the data needed to calculate a balance is ridiculous.
One option is a stored procedure, but then we lose the flexibility of having dynamic filters and ordering on queries (Well this is still possible but more work)
Another option is a server method, and have the server bring back all the data, calculate it, and then return a projection to the client.
What do you recommend? The stored proc would obviously be the fastest way, but you lose flexibility.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum