TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 jonballant大约 7 年前
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 条评论

brudgers大约 7 年前
Like everything, it depends on the use case. Public facing financial transactions have different objectives than an RSS feed of LoL Cat pictures.
评论 #16706796 未加载
sagargandecha大约 7 年前
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_Message大约 7 年前
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 未加载