couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Smith <>
Subject Re: Proposal for changes in view server/protocol
Date Sun, 01 Aug 2010 18:34:02 GMT
On Sun, Aug 1, 2010 at 02:21, J Chris Anderson <> wrote:

> I'm totally +1 on getting rid of these rough edges. I seriously doubt I'll
> have time to do anything but cheerlead, so if this is gonna happen, someone
> is gonna have to take up the charge.

Do you mind a little discussion about how that might work?

It seems to me there is no avoiding round trips between the _update function
and couchdb.

Is it allowed for the update function to query couchdb about whether id X is

Is it allowed (or preferred) for the update function to have an additional
flag similar to rereduce, indicating it is being called again due to a bad
_id? What about two bad _ids in a row? Is the function called indefinitely
with a growing list of previously-bad _ids until it returns an already-seen
bad _id, in which case you get a 409? None of this strikes me as clean.

Another thing to consider is perhaps the _update function can just specify
what to render in the case of conflict and let the client handle it. I think
that would be sufficient to at least allow a basic HTML form workflow again.

Jason Smith
Couchio Hosting

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message