Skip to content

Commit 2909bc5

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-11663 queries on views implementation (#6115)
DOCS-11663 queries-on views implementation Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 5c55376 commit 2909bc5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

source/includes/extracts-views.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ content: |
7575
- If the aggregation pipeline used to create the view suppresses the
7676
``_id`` field, documents in the view do not have the ``_id`` field.
7777
78+
When you query a view, the:
79+
80+
- Query ``filter``, ``projection``, ``sort``, ``skip``, ``limit``,
81+
and other operations for :method:`db.collection.find()` are
82+
converted to the equivalent :ref:`aggregation pipeline stages
83+
<aggregation-pipeline-operator-reference>`.
84+
85+
- Converted aggregation pipeline stages are added to the end of the
86+
:ref:`aggregation pipeline <aggregation-pipeline>` for the view.
87+
This does not modify the view's underlying pipeline, which is set
88+
when you create the view.
89+
90+
- :doc:`Aggregation pipeline optimizer
91+
</core/aggregation-pipeline-optimization>` reshapes the view
92+
aggregation pipeline stages to improve performance. This does not
93+
change the query results.
94+
7895
Sharded View
7996
~~~~~~~~~~~~
8097

0 commit comments

Comments
 (0)