Skip to content

Commit c8aa96f

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-11663 queries on views implementation (#6115) (#6118)
DOCS-11663 queries-on views implementation Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
1 parent f36c720 commit c8aa96f

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
@@ -63,6 +63,23 @@ content: |
6363
- If the aggregation pipeline used to create the view suppresses the
6464
``_id`` field, documents in the view do not have the ``_id`` field.
6565
66+
When you query a view, the:
67+
68+
- Query ``filter``, ``projection``, ``sort``, ``skip``, ``limit``,
69+
and other operations for :method:`db.collection.find()` are
70+
converted to the equivalent :ref:`aggregation pipeline stages
71+
<aggregation-pipeline-operator-reference>`.
72+
73+
- Converted aggregation pipeline stages are added to the end of the
74+
:ref:`aggregation pipeline <aggregation-pipeline>` for the view.
75+
This does not modify the view's underlying pipeline, which is set
76+
when you create the view.
77+
78+
- :doc:`Aggregation pipeline optimizer
79+
</core/aggregation-pipeline-optimization>` reshapes the view
80+
aggregation pipeline stages to improve performance. This does not
81+
change the query results.
82+
6683
Sharded View
6784
~~~~~~~~~~~~
6885

0 commit comments

Comments
 (0)