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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:53:48+00:00 2026-05-13T11:53:48+00:00

Using SQL Server 2005. This is something I’ve noticed while doing some performance analysis.

  • 0

Using SQL Server 2005. This is something I’ve noticed while doing some performance analysis.

I have a large table with about 100 million rows. I’m comparing the performance of different indexes on the table, to see what the most optimal is for my test scenario which is doing about 10,000 inserts on that table, among other things on other tables. While my test is running, I’m capturing an SQL Profiler trace which I load in to an SQL table when the test has finished so I can analyse the stats.

The first test run after recreating a different set of indexes on the table is very noticeably slower than subsequent runs – typically about 10-15 times slower for the inserts on this table on the first run after the index creation.

Each time, I clear the data and execution plan cache before the test.

What I want to know, is the reason for this initial poorer performance with a newly created set of indexes?
Is there a way I can monitor what is happening to cause this for the first run?

  • 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-13T11:53:48+00:00Added an answer on May 13, 2026 at 11:53 am

    One possibility is that the default fill factor of zero is coming in to play.

    This means that there’s ‘no room’ in the index to accommodate your inserts. When you insert, a page split in the index is needed, which adds some empty space to store the new index information. As you carry out more inserts, more space is created in the index. After a while the rate of splitting will go down, because your inserts are hitting pages that are not fully filled, so splits are not needed. An insert requiring page splits is more expensive than one that doesn’t.

    You can set the fill factor when you create the index. Its a classic trade off between space used and performance of different operations.

    I’m going go include a link to some Sybase ASE docs, ‘cos they are nicely written and mostly applicable to SQL Server too.

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

Sidebar

Related Questions

I'm using SQL Server 2005 and I'm trying to achieve something like this: I
We are using SQL Server 2005, but this question can be for any RDBMS
Has anyone encountered this error using SQL Server 2005 and Data access application blocks
I'm using SQL Server 2005. The query would look like this Select col1, col2,
With SQL Server 2005 using SSMS, when I run this: SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel
I'm using NHibernate for a project. This project opens a SQL Server 2005 database
I am using SQL Server 2005. I have a table with a text column
We're using SQL Server 2005 in a project. The users of the system have
I'm using SQL Server 2005 Analysis Services and I'm trying to calculate distance inside
Using SQL Server 2005 and Management Studio how do I insert a picture into

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.