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.

CouchDB 3.0

266 pointsby ifcologneabout 5 years ago

22 comments

splatcollisionabout 5 years ago
CouchDB is awesome, full stop.<p>While it&#x27;s missing some popularity from MongoDB and having wide adoption of things like mongoose in lots of open source CMS-type projects, it wins for the (i believe) unique take on map &#x2F; reduce and writing custom javascript view functions that run on every document, letting you really customize the way you can query slice and access parts of your data...<p>Example: I&#x27;m building a document analysis app that does topic + keyword frequency vectorization of a corpus of documents, only a few thousand for now.<p>I end up with a bunch of documents that have &quot;text&quot;: &quot;here is my document text...&quot; and &quot;vector&quot;: [ array of floating point values ...].<p>What I can do with couchdb is store that 20d vector and emit integers of it as a query key:<p><pre><code> var intVectors = doc.vector.map(function(val){ return Math.floor(val) }) emit(intVectors, 1); </code></pre> Then I can match an input document&#x27;s vector (calculated the same as corpus documents), calculate a &#x27;range&#x27; of those vectors, pass it as start and end keys, and super quickly get a result from the database of &#x27;here are documents that have vectors similar to your input&#x27;...<p>Super fun, quick and flexible to work with!
评论 #22430587 未加载
评论 #22427158 未加载
评论 #22426631 未加载
newfeatureokabout 5 years ago
One interesting thing you can do with CouchDB is that you can have a webapp where a user can specify their own database and credentials and it works over HTTP(s). That&#x27;s pretty unique. I&#x27;d love to see a SaaS using CouchDB and their &quot;on-premise&quot; offering just means the user provides their own database. I&#x27;m not sure how payment would work though - perhaps some verification proxy?<p>Firebase is the gold-standard for offline apps (as a service). CouchDB replaces Cloud Firestore, and Keycloak replaces Authentication. I haven&#x27;t seen OSS equivalents of Cloud Functions, ML Kit, and the other things (e.g. In-App messaging, and Cloud Messaging). It&#x27;d be nice to have the entire stack of Firebase bundled as a group of OSS projects, including CouchDB.<p>Sad to see that per doc access control didn&#x27;t make it in 3.0. Hopefully it&#x27;ll be in 3.1.
评论 #22426124 未加载
评论 #22429427 未加载
评论 #22427169 未加载
评论 #22426150 未加载
评论 #22427190 未加载
评论 #22426064 未加载
评论 #22428127 未加载
评论 #22426230 未加载
smoyerabout 5 years ago
I built two products on CouchDB 1.x starting in 2010 ... version three is another amazing step forward! For my more recent projects, I&#x27;ve replaced CouchDB with clustered PostgreSQL using JSON columns as I really enjoy the ability to write SQL queries for against the JSON and to use the built-in full-text search capabilities. I think both CouchDB and clustered PostgreSQL are amazing tools and it&#x27;s nice to be able to choose between them as needed. The best advice I&#x27;ve heard is to choose CouchDB when you know your queries ahead of time and the data &quot;schema&quot;[1] is variable and choose PostgreSQL when you know your data ahead of time and your queries are variable.<p>[1] In this case, a JSON document but either with a JSON-schema or marshaled&#x2F;unmarshaled into a strict type.
评论 #22428208 未加载
评论 #22434720 未加载
knubieabout 5 years ago
CouchDB is awesome and feels way ahead of its time. Its design docs are extremely powerful, to the point that you can build entire web apps with CouchDB alone (not that that&#x27;s recommended anymore). Plus with PouchDB you can create offline-first apps that sync with a remote CouchDB instance.
评论 #22427034 未加载
评论 #22427298 未加载
Phillips126about 5 years ago
I haven&#x27;t heard of CouchDB in quite some time, great to see it still improving.<p>I used it years ago when I was experimenting with Ionic[0]. What appealed to me was that I could use CouchDB (cloud) and PouchDB[1] (device) to and have a replicated copy of the data locally. The application was used in areas where network connection was very limited. Using this strategy I was able to ensure the mobile devices data was as recent as the last time it had a network connection.<p>[0] - <a href="https:&#x2F;&#x2F;ionicframework.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ionicframework.com&#x2F;</a><p>[1] - <a href="https:&#x2F;&#x2F;pouchdb.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pouchdb.com&#x2F;</a>
评论 #22443324 未加载
hajileabout 5 years ago
Reducing max document size from 4GB down to 8MB seems hyper-restrictive.<p>For those interested, looks like the guts of CouchDB are going to be swapped out for FoundationDB.<p><a href="https:&#x2F;&#x2F;blog.couchdb.org&#x2F;2020&#x2F;02&#x2F;26&#x2F;the-road-to-couchdb-3-0-prepare-for-4-0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.couchdb.org&#x2F;2020&#x2F;02&#x2F;26&#x2F;the-road-to-couchdb-3-0-...</a>
评论 #22426813 未加载
评论 #22426460 未加载
评论 #22429951 未加载
评论 #22443992 未加载
评论 #22430426 未加载
johnchristopherabout 5 years ago
&gt; – Updated to modern JavaScript engine SpiderMonkey 60<p>Yes ^^ !<p>Congrats to the team. These people are some of the nicest and most supportive devs I know of in the OSS community (or whatev&#x27;).<p>They show a great deal of patience in their slack channel and are always welcoming and answering stupid questions from idiots like me.
评论 #22432072 未加载
tbrockabout 5 years ago
At this point why would you use CouchDB over something like MongoDB?<p>Seriously asking...<p>Over the past 5 years MongoDB has gotten a great storage engine, transactions, distributed transactions, multi master replication, first class change streams and is very very solid as a foundational piece of infrastructure you can rely on while CouchDB has languished. I can’t imagine reaching for it in my tool belt when I need a document store over MongoDB but I’m obviously biased so I’m wondering if there is a lot I’m missing.<p>Obviously it’s cool from a more open source databases standpoint — I love learning about how things are built and evolve over time.
评论 #22426489 未加载
评论 #22426424 未加载
评论 #22426458 未加载
评论 #22426582 未加载
评论 #22426430 未加载
评论 #22426444 未加载
评论 #22426771 未加载
评论 #22432085 未加载
anonyfoxabout 5 years ago
Has anyone here tried to use couchdb <i></i>directly<i></i> within an elixir&#x2F;erlang OTP application? As like, „mix install“? Would kill for couchdb as a library!
pawelkabout 5 years ago
Other than being a great solution for some problems I wanted to highlight the fact that CouchDB has commited to SpiderMonkey (the Mozilla JS engine) since the very beginning and is one of the few projects helping to fend away the V8 monoculture.
crudbugabout 5 years ago
Congrats to the whole team.<p>Looking forward to CouchDB 4.0&#x2F;FoundationDB goodies. Do we have any roadmap details on this.
e12eabout 5 years ago
Oh wow, this is great news. I though the project was effectively long dead. Is there a new&#x2F;up-to-date &quot;couchapp&quot; too?<p>&gt; Default installations are now secure and locked down.<p>More good news!<p>Anyone have recent experience with couchdb?<p>I see the (quickstart) docs use plain http - should one terminate ssl in front, eg with a recent version of haproxy?
评论 #22426415 未加载
评论 #22432120 未加载
评论 #22426355 未加载
couchdb_ouchdbabout 5 years ago
I&#x27;m surprised to see so much love for CouchDB in this thread. I don&#x27;t think it&#x27;s been widely adopted in corporate america and has lost the war to MongoDB closed source or not.<p>I joined a company where it&#x27;s being used backing a mobile app with couch&#x2F;pouch in production. We can&#x27;t wait to get off of it. Writes are slow. Reads are worse. Having a DB per user is a scaling and backup nightmare. If you run into any issues, it&#x27;s a ghost town.<p>I&#x27;m glad the CouchDB Team is forging ahead, but who is really using this database?
评论 #22432114 未加载
评论 #22429213 未加载
yatsykabout 5 years ago
CouchDB&#x2F;PouchDB looks very promising for offline first apps, but I can’t understand how to restrict bad clients. Client potentially could insert document of huge size or execute expensive query and degrade experience of other clients on the same server. Is it any way to prevent this?
评论 #22427506 未加载
评论 #22426967 未加载
fiatjafabout 5 years ago
Many commenters here still think CouchDB is the same thing it was many years ago.<p>CouchDB was a simple but very powerful idea (that still needed improvements), but it was coopted into something not very nice nor good nor useful.<p>See my old rant about it and why it failed: <a href="http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20170530122143&#x2F;http:&#x2F;&#x2F;entulho.fiatjaf.alhur.es&#x2F;notes&#x2F;about-couchdb&#x2F;" rel="nofollow">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20170530122143&#x2F;http:&#x2F;&#x2F;entulho.fia...</a>
LoSboccaccabout 5 years ago
is the lucene search indexer synchronous with couchdb days updates?<p>I&#x27;m wondering how people solve the common search after create pattern when using external indexes
评论 #22432132 未加载
haolezabout 5 years ago
I once read that the right way to use CouchDB is for every user to have its own database. However, how does this work with BI? Or with public data that should be known by all users? Do I create a single centralized DB just for that kind of data? Maybe aggregate data from all users&#x27; DBs? Genuinely curious.
评论 #22430834 未加载
评论 #22432126 未加载
gigatexalabout 5 years ago
Can&#x27;t wait to see what CouchDB 4.0 with FoundationDB at it&#x27;s core does for the db.<p>This is a great release too!
agumonkeyabout 5 years ago
anybody acquainted with pouchdb devs ? just to know if there are plans to migrate already or not
评论 #22426809 未加载
评论 #22427588 未加载
mark_l_watsonabout 5 years ago
I haven&#x27;t used CouchDB in years. I just downloaded and installed it. Interesting that there are no apparent links to client libraries in different languages. Perhaps most people just use the HTTP API Reference and roll their own.
评论 #22433185 未加载
评论 #22430679 未加载
seigelabout 5 years ago
CouchDB is good. Yes. I still dream of the day when the cluster will balance shards automatically and recover better from losing and replacing nodes. :D
canada_dryabout 5 years ago
Maybe I&#x27;m being petty, but it doesn&#x27;t fill me with confidence when the ssl certificate on their website isn&#x27;t even configured properly (valid for uberspace.de domain).<p>To clarify: seems their main site is on apache.org. But, their www.couchdb.org site (hosted on uberspace.de) doesn&#x27;t have a correct cert.
评论 #22426237 未加载
评论 #22426280 未加载
评论 #22426380 未加载
评论 #22429559 未加载