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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:10:13+00:00 2026-05-13T08:10:13+00:00

For my database application, employing snapshot isolation for certain of its queries’ transactions seems

  • 0

For my database application, employing snapshot isolation for certain of its queries’ transactions seems perfect for solving one of the critical requirements.

I’m worried, though, how choosing snapshot isolation (which I believe must be enabled database-wide) now will bite us once we start getting very high volumes. What is the cost of snapshot isolation? Is it a fixed cost, linear, or geometric?

If I’m right to be concerned about high volumes, are there strategies/patterns for application-level functionality similar to snapshot isolation that might have better overall performance, but take more time/expertise to implement?

Thanks,

Jason

  • 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-13T08:10:13+00:00Added an answer on May 13, 2026 at 8:10 am

    For anyone who’s not already an expert on locking and database implementations, this can be a surprisingly difficult subject to wrap your mind around.

    I highly recommend reading this series of posts on snapshot isolation by Hugo Kornelis (SQL Server MVP). So far it’s the most complete analysis I’ve seen of practical considerations when using snapshots.

    To summarize the main issues:

    • When a particular combination of concurrent transactions would make it possible to violate a constraint (UNIQUE, FOREIGN KEY, etc.), SQL Server will fall back to the old way of doing things. This is good for reliability, obviously, but not for performance. Snapshots aren’t a panacea, they aren’t a replacement for good database/query design and intelligent lock management.
    • Snapshots and triggers may not play nice together. It’s especially dangerous if you use triggers to protect data integrity, but even if you don’t, pretty much all of your triggers will have to be made snapshot-aware.

    Depending on how you write your queries, you may not even need to be using triggers in order to end up with unexpected or inconsistent results.

    I don’t know if the costs are fixed or linear, although they’re definitely not geometric; I do know that it’s a bit of a headache regardless. It’s often talked about as a fire-and-forget option, but the truth is, it’s not, if you don’t know what you’re doing you can end up with breaking changes (ones that you probably won’t find out about until it’s too late!).

    By all means do use it if you’re sure that it won’t cause any other problems. But if any of your logic doesn’t care about dirty reads (and this applies to more than half the SELECT queries in many systems), you’ll get far better results with READ UNCOMMITTED (which does involve more “expertise” – you have to think very carefully about what can happen and when).

    Update: On application-level alternatives

    The only one that springs to mind is caching. Some data frameworks can do this for you (NHibernate, EF), and in some cases you might even have a 3rd tier of caching, such as web services that cache results based on the message input, results that might be based on several queries. I wouldn’t really call this an “alternative” but I imagine that some form of caching would be effective in your case if these are read-only queries and the underlying data doesn’t change frequently. The design consideration is, of course, how much you data you can afford to cache relative to the amount you need to serve; if the system is massively concurrent then this might not scale.

    Beyond that, I personally would not choose to try to implement my own app-level transactional “tier”. Maybe some people have done this, but I don’t think there’s any way that my limited experience can compete with hundreds or thousands of the brightest designers working on a DBMS for 20 years.

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

Sidebar

Related Questions

I have thought of creating my first database application for one of my projects
I am developing an sync database application for one of my client i am
I'm writing a database application where certain parts of the database might need updates
i have seen many android database application. Some of the application have its database
I'm designing a database application where data is going to change over time. I
I'm creating a database application using ASP.NET and I want to make a Windows
I have database application, I want to allow the user to restore the deleted
I have a database application in which a group is modeled like this: TABLE
i have inherited a database application from someone else and there are a few
I am implementing a database application and I will use both JavaDB and MySQL

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.