couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarrod Roberson <>
Subject Re: adding the ability to do a POST to _changes
Date Thu, 29 Apr 2010 06:07:06 GMT
On Thu, Apr 29, 2010 at 1:54 AM, J Chris Anderson <> wrote:

> Your JavaScript function should be able to accept the POST body and use it
> to decide whether to return true or false. So you can parse the JSON in your
> _filter fun and return true or false based on a docid match.
That is exactly what I came up with, but it seems a little expensive to
parse that JSON over and over for every document that gets changed I figured
it would be more efficient to do it in the Erlang layer once and be done
with it.

Jarrod Roberson

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