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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

CockroachDB: A Scalable, Geo-Replicated, Transactional Datastore

77 点作者 sokrates将近 11 年前

8 条评论

jacquesm将近 11 年前
That&#x27;s a funny name for a database. At least you&#x27;ll know that whoever uses it does not use it for its buzzword value.<p>How will this handle partitioning of the network? The readme has a lot of info about bits of the far-flung cluster failing but nothing about how it would deal with the whole cluster being chopped up into roughly equal halves. That&#x27;s one of the harder problems to deal with for solutions aimed at this space.
评论 #7823558 未加载
warfangle将近 11 年前
Riak, when you use LevelDB behind it, certainly has indexes. As many as you want (within reason), through secondary indexes[0]. While it doesn&#x27;t have joins specifically, you can link data blobs and walk the links[1]. For when that isn&#x27;t quite enough, you can always perform a compiled erlang map reduce across a given dataset[2].<p>I don&#x27;t quite see how CockroachDB offers anything Riak doesn&#x27;t.<p>Riak, while not offering true locking transactions (it doesn&#x27;t look like CockroachDB does either - imagine how long it would take to perform a locked transaction across sixteen data centers in as many countries, two of which have gone dark due to power outages and giant robots), offers you the option of resolving data version conflicts when you read the record[3]. (ed. Many times if doing a partial update of a record, you need to read before writing anyway. This resolves a conflict before you write to a potentially conflicted record chain. Typically this is done with a pre-commit hook. [4])<p>(ed.: The major differences seem to stem from the snapshotting system CDB uses to provide external consistency across data centers. This comes at a (potentially huge, especially if two clusters lose connection with each other but not with clients) delay in write verification.<p>Riak, on the other hand, would still allow writes - and would resolve any conflicts when the datacenters connect again. It&#x27;s a hairy problem to fix, especially in a general manner.<p>It all depends on what kind of data you&#x27;re storing.)<p>0. <a href="http://docs.basho.com/riak/latest/dev/using/2i/" rel="nofollow">http:&#x2F;&#x2F;docs.basho.com&#x2F;riak&#x2F;latest&#x2F;dev&#x2F;using&#x2F;2i&#x2F;</a><p>1. <a href="http://docs.basho.com/riak/latest/dev/using/link-walking/" rel="nofollow">http:&#x2F;&#x2F;docs.basho.com&#x2F;riak&#x2F;latest&#x2F;dev&#x2F;using&#x2F;link-walking&#x2F;</a><p>2. <a href="http://docs.basho.com/riak/latest/dev/using/mapreduce/" rel="nofollow">http:&#x2F;&#x2F;docs.basho.com&#x2F;riak&#x2F;latest&#x2F;dev&#x2F;using&#x2F;mapreduce&#x2F;</a><p>3. <a href="http://docs.basho.com/riak/latest/theory/concepts/Vector-Clocks/" rel="nofollow">http:&#x2F;&#x2F;docs.basho.com&#x2F;riak&#x2F;latest&#x2F;theory&#x2F;concepts&#x2F;Vector-Clo...</a><p>4. <a href="http://docs.basho.com/riak/latest/dev/using/commit-hooks/" rel="nofollow">http:&#x2F;&#x2F;docs.basho.com&#x2F;riak&#x2F;latest&#x2F;dev&#x2F;using&#x2F;commit-hooks&#x2F;</a>
评论 #7823667 未加载
评论 #7823428 未加载
评论 #7823471 未加载
评论 #7823436 未加载
limsup将近 11 年前
I assume it&#x27;s called this because a cockroach can supposedly survive a nuclear attack. But it&#x27;s a bad name. It does not invoke good feelings.
评论 #7823267 未加载
评论 #7823221 未加载
评论 #7823213 未加载
评论 #7823317 未加载
评论 #7823256 未加载
评论 #7823258 未加载
评论 #7823756 未加载
orasis将近 11 年前
Change the name. I get the joke, but it has an emotionally negative connotation that bosses will hate.
评论 #7823689 未加载
评论 #7823586 未加载
评论 #7823625 未加载
评论 #7823563 未加载
评论 #7823596 未加载
dang将近 11 年前
Given that most of the comments are merely about the name, and that the author has implied that the software doesn&#x27;t work [1], it seems there&#x27;s little to discuss here. We&#x27;re going to demote this submission [2].<p>1. <a href="https:&#x2F;&#x2F;twitter.com&#x2F;andybons&#x2F;status&#x2F;472458545154494465" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;andybons&#x2F;status&#x2F;472458545154494465</a>. The answer to that question, btw, is yes. Reposts of stories that have had significant attention are treated as dupes for about a year.<p>2. That&#x27;s not a criticism of the submitter. We want to see original work on HN. But there ought to be some substance to it, as well as to the resulting discussion.
rb2k_将近 11 年前
How would one communicate with this DB?<p>I&#x27;d love to see some API examples.
评论 #7823339 未加载
评论 #7823518 未加载
candybar将近 11 年前
As for the name, which I agree is problematic as is, how about EntomoDB for entomos (insect)?<p>Edit: It&#x27;s not problematic if success is not an objective. But if it is, choosing a name with such strong established negative connotations is not wise.
评论 #7823434 未加载
nawitus将近 11 年前
How does it handle replication and the resulting conflicts?
评论 #7823421 未加载