From aea02cd2dca5873cbb79c2c729ef47bfc5b59b83 Mon Sep 17 00:00:00 2001 From: jason-price-mongodb <69260375+jason-price-mongodb@users.noreply.github.com> Date: Wed, 10 Nov 2021 10:44:27 -0800 Subject: [PATCH] DOCS-11663 queries on views implementation (#6115) DOCS-11663 queries-on views implementation Co-authored-by: jason-price-mongodb --- source/includes/extracts-views.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/includes/extracts-views.yaml b/source/includes/extracts-views.yaml index 2ec1a7b7a84..b552b53620f 100644 --- a/source/includes/extracts-views.yaml +++ b/source/includes/extracts-views.yaml @@ -63,6 +63,23 @@ content: | - If the aggregation pipeline used to create the view suppresses the ``_id`` field, documents in the view do not have the ``_id`` field. + When you query a view, the: + + - Query ``filter``, ``projection``, ``sort``, ``skip``, ``limit``, + and other operations for :method:`db.collection.find()` are + converted to the equivalent :ref:`aggregation pipeline stages + `. + + - Converted aggregation pipeline stages are added to the end of the + :ref:`aggregation pipeline ` for the view. + This does not modify the view's underlying pipeline, which is set + when you create the view. + + - :doc:`Aggregation pipeline optimizer + ` reshapes the view + aggregation pipeline stages to improve performance. This does not + change the query results. + Sharded View ~~~~~~~~~~~~