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

  • Home
  • SEARCH
  • 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 615755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:15:14+00:00 2026-05-13T18:15:14+00:00

I was recently asked to speed up a C#/ASP.NET/SQL Server business app website. Since

  • 0

I was recently asked to speed up a C#/ASP.NET/SQL Server business app website. Since I just started, I don’t know too much about the internals. So where do I start? Sight unseen, what is the single most important thing affecting performance on a system like this? Database tuning? Hardware? Individual page optimization? What is the first thing you’d look at?

EDIT: After I actually do the work, I’ll come back and post the answer. 😉

EDIT again: “Profile” is currently the most-voted answer, and I agree that that is clearly what one should do. But I was looking for guesses/experience as to what the profiling results would show, so I don’t think that answer counts…

  • 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-13T18:15:15+00:00Added an answer on May 13, 2026 at 6:15 pm

    It turns out that the most egregious problem was a few trouble pages that hammered the database with thousands of SQL queries. The code was relatively innocent-looking, just some data bound grids. However, C#/LINQ was a bit too powerful for its (or our) own good: if you bind a grid to a table, but the grid wants to display a field from another table linked via foreign key, it does it! But it does it by running a zillion queries:

    SELECT ... FROM other_table WHERE Id = 1
    ...
    SELECT ... FROM other_table WHERE Id = 2
    ...
    SELECT ... FROM other_table WHERE Id = 3
    ...
    SELECT ... FROM other_table WHERE Id = 4
    ...
    

    and so on… by making sure that the dataset that was bound to the control had all necessary data without requerying the database, the problems eased noticeably.

    Now back to profiling…

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

Sidebar

Related Questions

I recently asked this question: MS SQL share identity seed amongst tables (Many people
I was recently asked if I knew anything about Dynamic Assemblies in .Net. The
I recently asked how to solve a simple SQL query . Turns out that
I recently asked this question here and got some great answers! Custom SQL GROUP
Recently, my boss asked me to improve the launch speed of our application, the
I've recently started to notice really annoying problems with VisualSVN(+server) and/or TortoiseSVN. The problem
I was recently asked to create a web page using a static website generator,
I recently asked for help with a regular expression; I now know I did
I recently asked a question about formatting JavaScript code in Vim. And I've also
I recently asked the question Is the behavior of return x++; defined? The result

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.