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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:08:21+00:00 2026-06-03T09:08:21+00:00

Recently, we made some changes to some SQL Server views that had the potential

  • 0

Recently, we made some changes to some SQL Server views that had the potential to negatively affect performance. We decided to run some performance tests on these views to see how we had affected them. The results were surprising.

The graph below shows the results of the performance tests that we ran. Here is what the graph represents:

  • The blue line is the view before any changes were made.
  • The red line shows the view after the changes were made.
  • The x-axis represents iterations in a loop.
    • Each iteration, a thousand new records are inserted (that the view will return).
    • Each iteration, we do several selects from the view we are testing and average the results.
  • The y-axis represents the time it takes for the view to return the results
  • The select statement that was performance tested had a where clause on it to only return 100 records each time. (there were 100 records inserted on each name during the test).

The results show us that we definitely did take a performance hit, but the thing that baffles us is that huge increase in performance once we hit around 40,000 records in the database. We have ran this test on several different servers and get similar results every time.

I am wondering if anyone can give insight into why this is happening. Why do we get a huge performance gain when we breach the 40,000 record level? Has anyone seen anything like this before? I have tried searching for some reason for this, but have come up empty handed.

We have tried tweaking the view, messing with indexes, rebuilding and reorganizing indexes, analyzing the execution plan, and various other things, but so far we have not found anything that would cause this.

View Performance

Any help or insight would be much appreciated. Thanks.

  • 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-06-03T09:08:23+00:00Added an answer on June 3, 2026 at 9:08 am

    You should approach this just like any other performance investigation: use a sound methodology and measure. Waits and Queues will, again, be priceless a s a methodology to identify the bottlenecks. Once you identify and measure the relevant metrics then the answer can be given what’s happening.

    Right now you simply measured response time, w/o any actual data of how is the time spent. W/o a single actual data point presented (collected metrics, test specifications for others to attempt etc), any explanation could be ventured with equal chance of being right: client code, locking contention, file growth, log growth, index stats, query plan changes, human error, gremlins, moon rays and of course, my favorite: fragmentation.

    So either do the proper analysis and investigation and collect the relevant metrics, or post the exact test (repro scripts, methodology) so we can measure ourselves.

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

Sidebar

Related Questions

I'm troubleshooting a performance regression in a large webapp. I recently made some changes
I recently made some changes to my MVC 3 project. When I run it,
In a game that I mod for they recently made some changes which broke
I'm working on a site that is using Facebook Connect and recently made some
We have recently migrated some 30 DTS packages in SQL Server 2000 to SSIS
I recently made some changes to my development environment and came across a problem.
Recently, I made some changes to an iOS app. Nothing special, but it was
In my project I made some changes that nothing works now. I cannot find
I have recently made some changes to my hosting account and a script I
So I recently made some changes to one of my tableviews and I noticed

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.