couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Vatamaniuc <>
Subject Re: CouchDB Next
Date Fri, 30 Sep 2016 18:23:26 GMT
Hi Filippo,

> Lazy Loading
> ——————
> I don’t know if CouchDB 2.0 comes with such a feature, but I would like to have a mechanism
to get just some document’s fields. Sometime I just need the title or whatever, but I have
to get the entire document. I would like to request just a set of fields when I retrieve a
document from the database.

There is  pr to do something like this with _change feeds and mango
selectors. It adds an additional fields parameters to return only some
fields from the doc. So if the doc is 10MB and you just want to return
1 field:


View raw message