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 7607413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:39:21+00:00 2026-05-31T00:39:21+00:00

I’ve got an ASP.NET 2.0 web app backed by a pretty complex SQL Server

  • 0

I’ve got an ASP.NET 2.0 web app backed by a pretty complex SQL Server database (lots of tables and lots of joins happening in lots of queries). My logs show that one day, the server-side load time for one particular page type jumped significantly. It had been usually below 100ms but sometimes up around 200ms before, and it went to above 600ms and has been there ever since (just over a week ago). The previous time we migrated new code to production was almost two weeks before this happened, and there was not a large volume of new data put into the system on that date.

I looked at this misbehaving page type in our test environment (which is less beefy than production, of course) and saw it averaging at around 450ms, which is higher than I want but not as high as production. That’s weird; I’d expect the test environment to run slower than production, since they’ve got essentially the same data set.

I narrowed it down to one database call (one line of C#) that was taking close to 200ms to call a stored procedure and assemble the results into .NET objects (the huge majority of that time is in the DB). I pulled up that sproc, copied the body of it and had SQL Server Manager tell me the estimated execution plan. It told me there was a missing nonclustered index, which I created; that brought the time on the database call in question below 100ms. Some more investigation showed that there is no other significant performance sink on that page type.

So I’ve improved things a little, and I’m tempted to create that index in production and see if page load time decreases significantly. But I still have questions that bug me and that I would prefer to answer before I mess around in production:

  • Why would performance drop all of a sudden? If it was simply a missing index, I would expect it to have been a factor all along (slowly decreasing performance as more data is added).
  • Why would test be performing better than production if it’s got the same data set?

I know no one can tell me about my app, but I’m hoping for some insight into what kinds of things can change like that and be installation-specific.

EDIT: I added the index to production and it brought the page load time back down to around 100ms. I still don’t quite understand what happened; maybe it’ll click someday when I learn something seemingly unrelated about databases and SQL.

  • 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-31T00:39:22+00:00Added an answer on May 31, 2026 at 12:39 am

    The performance of an execution plan in MSSQL is complex to predict. It could be that the missing index will increase the execution time with the square of the size of the table. That would make it look like it works, works, works and then suddenly get painfully slow.

    If management studio indicates a missing index, then you should add it (or another, even smarter index) to the production environment.

    Still, 100ms for an sp run by an ASP page is quite long. If the page is used a lot, try optimizing the sp.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
i got an object with contents of html markup in it, for example: string
I am writing an app with both english and french support. The app requests
I have a reasonable size flat file database of text documents mostly saved in

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.