Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Is SQL Server Snapshot Isolation Good?

Asked by Charles Parr Aug 14, 2021 1.1K views 1 answer
Share

About this question

My situation: Table: User { Id, Name, Stone, Gold, Wood } I have "write" threads:miningThread (every minute) UPDATE User SET Stone = @calculatedValue WHERE Id=@id  UPDATE User SET Wood = @calculatedValue WHERE Id=@id tradingThread (every minute) UPDATE User SET gold = @calculatedValue WHERE Id=@id constructionThread (every minute) UPDATE User SET Wood = @calculatedValue WHERE Id=@id  UPDATE User SET Stone= @calculatedValue WHERE Id=@id And have "write" requests from users: SellResource UPDATE User SET Stone(Wood,Gold) = @calculatedValue WHERE Id=@id (calculatedValue is calculated by C# bussiness logic code) In this case, I have a lot "lost update" problems if i set read_commited_snapshot isolation level. But if i set serializable or snapshot level, all work fine

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.