couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <>
Subject Re: Auto-adding additional fields on PUT/POST? (datetime stamps)
Date Wed, 03 Dec 2008 22:33:10 GMT
On Tue, Dec 2, 2008 at 11:10 PM, Jedediah Smith
<> wrote:
> How about "live
> views"? e.g.
> /db/_view/email/by_date?follow=true&after_seq=300
> But then you need a way to represent removed rows.. seems simple enough:
> {"id":"abc", "key":"123", "deleted":true}

This is essentially how replication via views will work. Replication
views have slightly different semantics (they aren't stored on the
server, for one thing -- it's up to the client to maintain the
replication state.)

As a result their function signature is different (they don't emit as
they aren't sorted by key, just seq #). The client supplies a
replication function, which the server runs across docs in seq order,
replicating docs that match the function. This is looking very


Chris Anderson

View raw message