High-level streaming API for CouchDB