TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Demystifying Database Systems: An Introduction to Transaction Isolation Levels

202 pointsby freelsabout 6 years ago

4 comments

abadidabout 6 years ago
Glad to see to see this post on HN. I'm the author and happy to respond to questions in this thread.
bennybolideabout 6 years ago
&gt; If any of my readers are aware of any real lawsuits that came from application developers who believed they were getting a SERIALIZABLE isolation level, but experienced write skew anomalies in practice<p>Doubt this ever really happened. Can hardly imagine debating serializability in a court of law Oracle v. Google was bad enough.
评论 #19819598 未加载
kerblangabout 6 years ago
It seems grossly irresponsible to encourage the use of serializable without even mentioning deadlocks. I guess you won&#x27;t have deadlocks if your db interprets as serializable as &quot;lock the whole database on transaction start&quot;, but that means literally no concurrency whatsoever, which also seems like a grossly irresponsible recommendation.<p>I dunno, maybe I didn&#x27;t get the memo that the database of the future will be single-threaded.
评论 #19820934 未加载
评论 #19820757 未加载
评论 #19822910 未加载
havkomabout 6 years ago
In many real world applications using common databases you do not always need “transaction safety”, in particular when reading data for statistical purposes.<p>Performance gains and not blocking the database for many other readers and writers will in many scenarios outweigh the possibly of reading uncommitted&#x2F;dirty data.<p>Use:<p>SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED<p>(whether you are are querying from within a transaction or not)<p>and you may be surprised how this may solve many of your performance problems in your application&#x2F;service.
评论 #19821910 未加载
评论 #19823736 未加载