You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2018/05/29 02:01:29 UTC

[couchdb-documentation] 01/02: Address comments from code review

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch 2971-stats-documentation
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

commit e7cc2d415327a35db7090c3302ef98acc7b0ddcf
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Mon May 28 20:45:34 2018 -0400

    Address comments from code review
---
 src/ddocs/ddocs.rst | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/ddocs/ddocs.rst b/src/ddocs/ddocs.rst
index 0766330..8ab9242 100644
--- a/src/ddocs/ddocs.rst
+++ b/src/ddocs/ddocs.rst
@@ -122,13 +122,15 @@ equivalent JavaScript functions.
 
 .. data:: _approx_count_distinct
 
-Since version `2.2.0`.
+.. versionadded:: 2.2
 
 Aproximates the number of distinct keys in a view index using a variant of the
-HyperLogLog algorithm. This algorithm enables an efficient, parallelizable
+`HyperLogLog`_ algorithm. This algorithm enables an efficient, parallelizable
 computation of cardinality using fixed memory resources. CouchDB has configured
 the underlying data structure to have a relative error of ~2%.
 
+.. _HyperLogLog: https://en.wikipedia.org/wiki/HyperLogLog
+
 As this reducer ignores the emitted values entirely, an invocation with
 ``group=true`` will simply return a value of 1 for every distinct key in the
 view. In the case of array keys, querying the view with a ``group_level``
@@ -211,7 +213,7 @@ using the JavaScript example above and emit a pre-aggregated object.
 
 .. data:: _sum
 
-In it simplest variation, ``_sum`` sums the numeric values associated with each
+In its simplest variation, ``_sum`` sums the numeric values associated with each
 key, as in the following JavaScript:
 
 .. code-block:: javascript
@@ -222,8 +224,8 @@ key, as in the following JavaScript:
     }
 
 As with ``_stats``, the ``_sum`` function offers a number of extended
-capabilities. The _sum function requires that map values be numbers, arrays of
-numbers, or objects. When presented with array output from a map function,
+capabilities. The ``_sum`` function requires that map values be numbers, arrays
+of numbers, or objects. When presented with array output from a map function,
 ``_sum`` will compute the sum for every element of the array. A bare numeric
 value will be treated as an array with a single element, and arrays with fewer
 elements will be treated as if they contained zeroes for every additional

-- 
To stop receiving notification emails like this one, please contact
kocolosk@apache.org.