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.

Ask HN: Dirty Reads for Databases: Good Thing or Bad?

3 pointsby jonballantabout 7 years ago
I'm doing some research on database isolation levels and which allow dirty reads through isolation level READ UNCOMMITTED. The advantage seems to be speed and latency but at the cost of accuracy and consistency. My question for the community is if allowing Dirty Reads is preferred?

3 comments

brudgersabout 7 years ago
Like everything, it depends on the use case. Public facing financial transactions have different objectives than an RSS feed of LoL Cat pictures.
评论 #16706796 未加载
sagargandechaabout 7 years ago
I'm certainly not the most knowledgeable in this at all, but if I'm not mistaken most environments I've worked in have been only the dev instance allows it, while UAT and production won't allow any dirty reads.
评论 #16705798 未加载
Robin_Messageabout 7 years ago
Since the transaction that did the write is uncommitted, dirty reads are generally a bad idea as you may act based on something that is subsequently thrown away.<p>Only useful use I&#x27;ve found for them: emulating sequences on a DB without them.
评论 #16706267 未加载
评论 #16706191 未加载