couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirkjan Ochtman <dirk...@ochtman.nl>
Subject Re: Rekindle discussion: `reduce=false` fails unpredictably
Date Sun, 19 Sep 2010 12:59:10 GMT
On Mon, Aug 30, 2010 at 10:01, Jason Smith <jhs@couch.io> wrote:
> I propose a minor change to validation: a simple check is made to
> determine if the extra parameter would result in a no-op. If so, no
> exception is thrown. Therefore:
>
> map view, reduce=false -> Allowed
> map view, reduce=true -> query_parse_error
> map view, group or group_level -> no change to today's behavior
> map/reduce view -> no change to today's behavior
>
> (It can't be known at query time whether group and group_level no-op.
> In general they do not. Therefore the client must explicitly get it
> right.)
>
> If this is acceptable, I will submit the patch to JIRA. Thank you.

Sounds awesome. I filed
https://issues.apache.org/jira/browse/COUCHDB-845 about similar
issues.

Cheers,

Dirkjan

Mime
View raw message