.NET/SQL Optimization: SQL-side v code-side

Status
You're currently viewing only fitten's posts. Click here to go back to viewing the entire thread.

fitten

Ars Legatus Legionis
55,632
Subscriptor++
If you can query and fetch all the data in LESS time remotely than performing it on the server in a well structured sql query; what pathological issue are you dealing with.
I was wondering the same thing. There are other things that I would consider, too. For example, we may need to include the data transfer time. The SQL Server should be able to do some things pretty fast and then send a small result set to the client. If every query sends all the data over to the client for calculations, all that's going to add up. 10-100 times per minute for 1.6MB of data isn't too bad for today's networks but the OP doesn't say how many clients are running or where they are. If you are doing that across 100 clients, you'll start getting to a point where someone might notice and probably not something you'd want to do to just any random client(s) in the world. And then we might want to consider what data we are sending to a client. Sending over aggregate data / summaries / etc. is one thing but I would want to consider things if I were sending over confidential / personal data.

IME, SQL Server is pretty good with computation (aggregates, etc.) and if the server is pretty good (which we would generally have pretty big onprem machines... many cores, gobs of memory... or host it in the cloud and then you can scale it as you need) then you don't have to worry about all the clients having to be high(er) end machines, either.
 
Status
You're currently viewing only fitten's posts. Click here to go back to viewing the entire thread.