Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:55:16+00:00 2026-05-30T10:55:16+00:00

What is the most common and easy to implement solution to improve speed for

  • 0

What is the most common and easy to implement solution to improve speed for SQL Server 2008R2 database & .Net 3.5 application.

We have an application with the following attributes:
– small number of simultaneous clients (~200 at MOST).
– complex math operations on SQL server side
– we are imitating something to oracle’s row-level security (Thus using tvf’s and storedprocs instead of directly querying tables)
-The main problem is that users perform high amount of updates/inserts/deletes/calculations, and they freak out because they need to wait for pages to reload while those actions are done.

The questions I need clarification on are as follows:

  1. What is faster: returning whole dataset from sql server and performing math functions on C# side, or performing calculation functions on sql side (thus, not returning extra columns). Or is it only hardware dependant?
  2. Will caching improve performance (For example if we add redis cache). Or caching solutions only feasible for large number of clients?
  3. Is it a bad practice to pre-calculate some of the data and store somewhere in the database (so, when user will request, it will already be calculated). Or this is what caching suppose to do? If this is not a bad practice, how do you configure SQL server to do calculations when there are available resources?
  4. How caching can improve performance if it still needs to go to the database and see if any records were updated?

general suggestions and comments are also welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:55:18+00:00Added an answer on May 30, 2026 at 10:55 am

    Let’s separate the answer to two parts, performance of your query execution and caching to improve that performance.
    I believe you should start with addressing the load on your SQL server and try to optimize process running on it to the maximum, this should resolve most of the need to implement any caching.

    From your question it appears that you have a system that is used for both transactional processing and also for aggregations/calculations, this will often result in conflicts when these two tasks lock each other resources. A long query performing math operations may lock/hold an object required by the UI.
    Optimizing these systems to work side-by-side and improving the query efficiency is the key for having increased performance.

    To start, I’ll use your questions. What is faster? depends on the actual aggregation you are performing, if you’re dealing with a set operations, i.e. SUM/AVG of a column, keep it in SQL, on the other hand if you find yourself having a cursor in the procedure, move it to C#. Cursors will kill your performance!
    You asked if it’s bad-practice to aggregate data aside and later query that repository, this is the best practice :). You’ll end up with having one database catering the transactional, high-paced clients and another database storing the aggregated info, this will be quickly and easily available for your other needs. Taking it to the next step will result with you having a data warehouse, so this is definitely where you want to be heading when you have a lot information and calculations.

    Lastly, caching, this is tricky and really depends on the specific nature of your needs, I’d say take the above approach, spend the time in improving the processes and I expect the end result will make caching redundant.

    One of your best friends for the task is SQL Profiler, run a trace on stmt:completed to see what are the highest duration/io/cpu and pick on them first.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a client-server application written in .NET which would do
Most common ORMs implement persistence by reachability, either as the default object graph change
One of the most common dilemmas I have when commenting code is how to
By far, the most common class of errors I have are issues with the
The most common method for corrupting compressed files is to inadvertently do an ASCII-mode
On most common platforms (the most important being x86; I understand that some platforms
What are the most common problems that can be solved with both these data
What are the most common things to test in a new site? For instance
What are the most common memory optimizations in csharp, dotnet 2.0. Wanted to see
What's the most common way to deal with a series of block elements that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.