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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

CouchDB vs. MongoDB

88 点作者 yanivleven将近 8 年前

15 条评论

candeira将近 8 年前
The article is strangely outdated on the CouchDB side, like someone wrote it two years ago.<p>It fails to mention that CouchDB now has Mango, which is a MongoDB-compatible query language.<p>Since 2.0, CouchDB also has Dynamo-like clustering thanks to Cloudant&#x27;s open sourcing of the BigCouch code.<p>I wonder if the MongoDB side of the comparison is more up-to-date, or equally stale.
评论 #14566730 未加载
brianpgordon将近 8 年前
No mention of Mongo &quot;&#x2F;dev&#x2F;null as a service&quot; DB&#x27;s infamous issues with data loss?<p>Apparently their new replication protocol isn&#x27;t as utterly broken as the old one, but my understanding is that data recovery after server crashes is still a problem.
评论 #14565060 未加载
btown将近 8 年前
&gt; Mobile support: CouchDB stands out, in that it can run on an Android or iOS mobile device. In addition to being mobile, the database can also synchronize with a remote master database, allowing the data to be shared easily between mobile devices and servers.<p>Meteor actually provides exactly this for MongoDB; it has a &quot;minimongo&quot; package in the browser that supports Mongo&#x27;s query language, running it synchronously against an in-memory copy of the collection [0]. And with Meteor, you can specify &quot;subscriptions&quot; declaratively that enable bidirectional synchronization while their owner components are in scope.<p>Mongo certainly has some reliability issues (see other comments here) but I&#x27;ve yet to find a full-stack system so painless to develop in, <i>especially</i> if you need realtime support. With things like ToroDB Stampede [1] and a general approach of &quot;write all your code in React with Meteor dependencies factored out into containers,&quot; there&#x27;s a clear migration path towards the relational-based separate-backend-frontend world when you need to go there.<p>[0] <a href="https:&#x2F;&#x2F;guide.meteor.com&#x2F;collections.html" rel="nofollow">https:&#x2F;&#x2F;guide.meteor.com&#x2F;collections.html</a><p>[1] <a href="https:&#x2F;&#x2F;www.torodb.com&#x2F;stampede&#x2F;docs&#x2F;1.0.0-beta2&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.torodb.com&#x2F;stampede&#x2F;docs&#x2F;1.0.0-beta2&#x2F;about&#x2F;</a>
评论 #14567110 未加载
Florin_Andrei将近 8 年前
CouchDB replication has got to be among the easiest and nicest in the industry. Setting up master&#x2F;master is a breeze.
passwordlost将近 8 年前
&gt; Snapshots: Any changes to a document occur as a revision and appends the information to the file. This means you can grab a “snapshot” of the file and copy it to another location even while the database is running without having issues with corruption.<p>This is the main feature I sell when pushing CouchDB.<p>Use it to project events and you&#x27;ll see what I mean.
评论 #14570305 未加载
lunaru将近 8 年前
I want to make an obvious point, but I know it confused me quite a bit for a while, so just in case it helps anyone else: There&#x27;s CouchDB and then there&#x27;s Couchbase which is similarly named but completely different.<p>I recommend anyone shopping for databases with easy master&#x2F;master replication with eventual consistency and no single points of failure to consider Couchbase as well. It&#x27;s not the same will have it&#x27;s own set of pros and cons.
评论 #14567023 未加载
AdrianRossouw将近 8 年前
I really liked this article for this kind of thing :<p><a href="https:&#x2F;&#x2F;kkovacs.eu&#x2F;cassandra-vs-mongodb-vs-couchdb-vs-redis" rel="nofollow">https:&#x2F;&#x2F;kkovacs.eu&#x2F;cassandra-vs-mongodb-vs-couchdb-vs-redis</a>
koolba将近 8 年前
&gt; MongoDB is schema-free, allowing you to create documents without having to first create the structure for that document. At the same time, it still has many of the features of a relational database, including strong consistency and an expressive query language.<p>The author clearly has a different definition of &quot;strong consistency&quot; than most. I don&#x27;t see how any claims of consistency (in a data usage, not CAP sense) can be made of a database that can&#x27;t properly store a number as a number or even guarantee that it&#x27;s a number at all.<p>Also, does anyone actually like the Mongo query language? It was cute when I first saw it but I pity anyone trying to do anything complicated by manually writing those JSON strings.
评论 #14566715 未加载
评论 #14565476 未加载
wsxiaoys将近 8 年前
One huge benefit by adapting a CouchDB backend is you got replication free, with PouchDB on client side this opens so many opportunities.
评论 #14565195 未加载
评论 #14564919 未加载
pbreit将近 8 年前
I&#x27;d like to see &quot;vs Postgres&quot;.
评论 #14565348 未加载
hackbinary将近 8 年前
We&#x27;ve found the Postgres json store works just fine for our purposes, thank you very much.
评论 #14565352 未加载
评论 #14566447 未加载
assafmo将近 8 年前
I don&#x27;t agrre with the article saying MongoDB is better at reading.<p>From my experience MongoDB is fast, but CouchDB really shines when you have a read heavy application.<p>Also the article didn&#x27;t mention Mango queries, which is a blessing (fast indexing as erlang views), but in my opinion this feature can be a lot better with stale results, for instance.
brimstedt将近 8 年前
I use couch, pouch, elasticsearch and sql dbs. I never really got the &quot;schemaless&quot; selling point of nosql though.<p>I do see the point of storing documents rather than rows for some use cases, or dbs extra strong on searches, etc.<p>But what is the problem with an &quot;add column&quot; or &quot;change datatype&quot; operation is sql..?
评论 #14571753 未加载
评论 #14571768 未加载
usuallybaffled将近 8 年前
I find MongoDB easier to deploy and maintain because it&#x27;s easier to build and monitor. CouchDB with Erlang not so much (for our environment, it&#x27;s totally alien).<p>EDIT: I made a statement about our preference, for our environment. I did not make broad claims about these DBs for other people. How am I upsetting HN?
评论 #14564877 未加载
virmundi将近 8 年前
Now do ArangoDB vs MongoDB. Given Arango&#x27;s clustering tools recently, it should be a fair comparison.