You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/07 08:52:10 UTC

[couchdb-documentation] 01/01: Document Mango configuration options

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

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

commit f4d41a858f89cf5823e5ce4879a8c897de2c4c42
Author: Will Holley <wi...@gmail.com>
AuthorDate: Tue Jan 7 08:50:56 2020 +0000

    Document Mango configuration options
    
    Adds documentation for the Mango configuration options:
     * mango.index_all_disabled
     * mango.default_limit
     * mango.index_scan_warning_threshold
---
 src/config/query-servers.rst | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/src/config/query-servers.rst b/src/config/query-servers.rst
index e6710ef..4354444 100644
--- a/src/config/query-servers.rst
+++ b/src/config/query-servers.rst
@@ -227,3 +227,44 @@ CouchDB's search subsystem can be configured via the ``dreyfus`` configuration s
         database. Attempts to set ``?limit=N`` higher than this value will be rejected. If
         this config setting is not defined, CouchDB will use the value of ``max_limit``
         instead. If neither is defined, the default is ``2000``.
+
+.. _config/mango:
+
+Mango
+=====
+
+Mango is the Query Engine that services the :ref:`_find <api/db/_find>`, endpoint.
+
+.. config:section:: mango :: Mango Configuration
+
+    .. config:option:: index_all_disabled :: Disable "index all fields" behaviour
+
+        Set to ``true`` to disable the "index all fields" text index. This can lead
+        to out of memory issues when there are documents with nested array fields.
+        Defaults to ``false``.
+
+            [mango]
+            index_all_disabled = false
+
+    .. config:option:: default_limit :: Default limit value for Mango queries.
+
+        Sets the default number of results that will be returned in a
+        :ref:`_find <api/db/_find>` response. Individual requests can override this
+        by setting ``limit`` directly in the query parameters.
+        Defaults to ``25``.
+
+            [mango]
+            default_limit = 25
+
+    .. config:option:: index_scan_warning_threshold :: Ratio threshold that generates an
+       index scan warning
+
+        This sets the ratio between documents scanned and results matched that
+        will generate a warning in the _find response. For example, if a query
+        requires reading 100 documents to return 10 rows, a warning will be
+        generated if this value is ``10``.
+
+        Defaults to ``10``. Setting the value to ``0`` disables the warning.
+
+            [mango]
+            index_scan_warning_threshold = 10