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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:02:27+00:00 2026-06-07T16:02:27+00:00

I hit upon auto_update_statistics on google, it suggest if we make this ON we

  • 0

I hit upon auto_update_statistics on google, it suggest if we make this ON we do not need to update Statistics, SQL Server will do it.

I was wondering so for any Insert, Update(of Indexed Column), Delete on Table will result in Update of Statistics? If yes will not that create latency for transaction.

  • 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-07T16:02:29+00:00Added an answer on June 7, 2026 at 4:02 pm

    Statistics do not get updated along with the insert/update/delete operations themselves. These operations just update a modification counter so SQL Server can keep track of how many changes there have been and whether an update is due.

    When a query is executed that would use the statistics SQL Server checks whether the statistics are stale and updates the statistics if required.

    The definitive article on the subject is Plan Caching in SQL Server 2008 (from which this flow chart is taken)

    enter image description here

    As mentioned earlier SQL Server maintains a count of the number of modifications made to each column. If the number of modifications since the plan was compiled exceeds the recompilation threshold (RT) then the plan will be recompiled and statistics updated. The RT depends on table type and size.

    RT is calculated as follows. (n refers to a table’s cardinality when a query plan is compiled.)

    Permanent table
    – If n <= 500, RT = 500.
    – If n > 500, RT = 500 + 0.20 * n.

    Temporary table
    – If n < 6, RT = 6.
    – If 6 <= n <= 500, RT = 500.
    – If n > 500, RT = 500 + 0.20 * n.
    Table variable
    – RT does not exist. Therefore, recompilations do not happen because of changes in cardinalities of table variables.

    These recompilation thresholds are not suitable for all situations. e.g. see Statistics, row estimations and the ascending date column and traceflag 2371 can be used to modify the behaviour.

    If AUTO_UPDATE_STATISTICS_ASYNC is OFF then the statistics are updated by the requesting spid before compilation can continue. If this option is ON then the statistics are updated by a system spid in the background and the original query is not blocked but just continues using the stale statistics.

    One additional way in which statistics can be updated is that rebuilding an index will also update the statistics with FULLSCAN at the same time.

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

Sidebar

Related Questions

I have a this asp.net page which upon first time load: 1: Make a
I have hit upon this problem about whether to use bignums in my language
How to catch return hit (enter) on TextBox? The following does not work. I
I've hit this problem recently, and I've been stuck at it for a few
I have hit upon a unique problem and wanted to know if others see
I have hit upon a real brain scorcher in C++, it has never happened
I was trying to answer another SO question when I hit upon some very
While studying different programming languages, I recently hit upon Icon programming language . It
I'm using Selenium's webdriver, but I've hit upon a problem. I'm using KnockoutJS to
I've been using the AbstractRoutingDataSource with great success, but have hit upon an issue

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.