术语“读取修复”应用于数据库时意味着什么?

发布于 2024-07-27 16:03:39 字数 127 浏览 4 评论 0原文

我最近一直在评估大型键值存储,并且不断遇到“读取修复”一词,但不知道他们在说什么。 我认为这与交易有关,但不确定。

有人可以解释一下它是什么以及它与传统数据库的工作方式有何不同吗? 也许提供一些伪代码来帮助解释?

I've been evaluating large key-value stores recently and I keep coming acrosss the term 'read-repair' but have no clue what they are talking about. I think it has something to do with transactions but am not sure.

Could someone please explain what it is and how it is different from the way traditional databases work? Maybe provide some pseudo code to help explain?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

衣神在巴黎 2024-08-03 16:03:39

为了提高可扩展性,许多可扩展的键值存储允许您仅写入一段数据的大多数副本。 (因此,如果您有 5 个副本,则只需写入其中的 3 个)。 当您读取时,请确保从大多数副本中读取。 这样您就可以保证至少读取一个具有最新值的副本。

读取修复意味着当您检测到某些副本具有较旧的值时,您可以使用较新的值更新它们,以减少系统中过时值的数量。 这是“反熵”过程的一个示例。

To improve scalability, many scalable key-value stores allow you to write to only a majority of the replicas for a piece of data. (So, if you have 5 replicas, you only have to write to 3 of them). When you read, you make sure to read from a majority of the replicas. That way you're guaranteed to read at least one replica that has the newest value.

Read Repair means when you detect that some of the replicas have older values, you update them with the newer value just to reduce the number of obsolete values in the system. This is an example of a "Anti-Entropy" procedure.

变身佩奇 2024-08-03 16:03:39

我认为读取修复意味着在不同的节点上有 2 个数据副本。

上:http://highscalability.com/drop-acid-and-think-关于数据 我发现了这个:

读取修复 - 当客户端执行
阅读并且节点不同意
由客户选择的数据
正确的数据并告诉节点
新的正确状态。

我希望这是正确的:)

I think read-repair means theres 2 copys of the data on separate nodes.

On: http://highscalability.com/drop-acid-and-think-about-data I found this:

Read repair - When a client does a
read and the nodes disagree on the
data it's up to the client to select
the correct data and tell the nodes
the new correct state.

I hope this is correct :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文