couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Cohnen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-801) Add 'ForceReReduce=true' option to views to ensure that reduce function is called
Date Wed, 16 Jun 2010 07:58:25 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879273#action_12879273
] 

Sebastian Cohnen commented on COUCHDB-801:
------------------------------------------

I don't feel like this should go into couchdb itself, since this is only relevant for testing
purposes. It also does not always make sense to "force" a rereduce for testing e.g. if one
key only has one value. you would have to make sure, that you have enough documents too, in
such cases.

For testing your map/reduce-funs, it is much easier and more flexible when you use the js
cli command and call your map and reduce funs in a unit-test fashion. If you live in the ruby
world you could have a look at couch_potato, which has basic support for unit-testing map/reduce
funs.

> Add 'ForceReReduce=true' option to views to ensure that reduce function is called
> ---------------------------------------------------------------------------------
>
>                 Key: COUCHDB-801
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-801
>             Project: CouchDB
>          Issue Type: Improvement
>         Environment: Any
>            Reporter: Bryan White
>            Priority: Minor
>
> AFAIK there is no way to force a Map Reduce with rereduce=true to happen, other than
creating an arbitrary large number of documents. So any bugs in handling reduce calls with
rereduce=true might not be discovered at development time.
> I propose something like a 'ForceReReduce=true' option which will call Reduce with rereduce=true
(either once overall, or maybe once for each document) in order to shake any lurking bugs
out of the tree. 
> If there *is* such a feature, I apologise; I've looked but can't find it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message