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/05/29 02:00:41 UTC

[GitHub] kocolosk commented on a change in pull request #279: Expand docs on builtin reducers, add _approx_count_distinct

kocolosk commented on a change in pull request #279: Expand docs on builtin reducers, add _approx_count_distinct
URL: https://github.com/apache/couchdb-documentation/pull/279#discussion_r191290009
 
 

 ##########
 File path: src/ddocs/ddocs.rst
 ##########
 @@ -116,17 +116,25 @@ single value - which could be an array or similar object.
 Built-in Reduce Functions
 ^^^^^^^^^^^^^^^^^^^^^^^^^
 
-Additionally, CouchDB has three built-in reduce functions. These are implemented
-in Erlang and run inside CouchDB, so they are much faster than the equivalent
-JavaScript functions: ``_sum``, ``_count`` and ``_stats``. Their equivalents in
-JavaScript:
+Additionally, CouchDB has a set of built-in reduce functions. These are
+implemented in Erlang and run inside CouchDB, so they are much faster than the
+equivalent JavaScript functions.
 
-.. code-block:: javascript
+.. data:: _approx_count_distinct
 
-    // could be replaced by _sum
-    function(keys, values) {
-        return sum(values);
-    }
+Since version `2.2.0`.
 
 Review comment:
   Ah, I should have grep'ed around for that. Will add, but set to `2.2` to maintain consistency with other usage in the docs.

----------------------------------------------------------------
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