incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Large views and concurrent access
Date Fri, 14 Jun 2013 20:51:28 GMT

On Jun 14, 2013, at 12:09 PM, mangvlad <mangvlad@yahoo.com> wrote:

> I guess I can introduce some caching in my node.js layer, but ideally, 
> I would like to "exhaust" my couchdb options first...

It’s always going to be much faster to cache local objects than to download and parse 1.5MB
of JSON, no matter how fast the CouchDB server gets.
Consider using conditional GETs, so you’ll get the updated view results if they’ve changed,
and a simple 304 response if they haven’t.

—Jens
Mime
View raw message