You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/03/06 10:21:56 UTC

[GitHub] SCdF commented on issue #1204: view queries default to map unless a reduce is defined and then they run reduce

SCdF commented on issue #1204: view queries default to map unless a reduce is defined and then they run reduce
URL: https://github.com/apache/couchdb/issues/1204#issuecomment-370734359
 
 
   I also found this very confusing. I think because (at least for me) the vast majority of view usage is without a corresponding reduce, it's not something that you come across much, and it's a pretty radical change that is only passively documented in the query param list.
   
   I think it might be worth modifying the documentation to pull this effect[1] into a warning documentation block to highlight it, and include an explanation to get everyone on the same page.
   
   Something like:
   
   > **Warning**
   > By default, querying a view runs its reduce function if it has one. This can be confusing if you are used to just using map functions, and are adding a reduce function to an existing view. This happens because <explanation goes here />
   
   [1] That all view queries automatically become reduce queries when you add a reduce

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services