<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:03:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-11663] There is no explanation of how queries against views are implemented</title>
                <link>https://jira.mongodb.org/browse/DOCS-11663</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Our documentation for views says only &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Views are computed on demand during read operations, and MongoDB executes read operations on views as part of the underlying aggregation pipeline.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;(in a section titled &lt;a href=&quot;https://docs.mongodb.com/manual/core/views/index.html#view-creation&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;View Creation&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;While that is all correct, more detail is needed.  I suggest something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;What happens when you run a query against a view is:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the query filter, projection, sort, skip, limit etc parts of the find command are converted to their equivalent aggregation stages.&lt;/li&gt;
	&lt;li&gt;those stages are added to the end of the aggregation pipeline in the view definition.&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/core/aggregation-pipeline-optimization/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Aggregation Pipeline Optimization&lt;/a&gt; then reorders and/or coalesces stages where doing so will give a performance benefit while not changing the results.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt; (and it would probably be appropriate under the heading for &lt;a href=&quot;https://docs.mongodb.com/manual/core/views/#behavior&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Behaviour&lt;/a&gt; on the same page.&lt;/p&gt;</description>
                <environment>All</environment>
        <key id="535542">DOCS-11663</key>
            <summary>There is no explanation of how queries against views are implemented</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jason.price@mongodb.com">Jason Price</assignee>
                                    <reporter username="william.byrne@mongodb.com">William Byrne III</reporter>
                        <labels>
                            <label>views</label>
                    </labels>
                <created>Sat, 28 Apr 2018 05:55:00 +0000</created>
                <updated>Mon, 13 Nov 2023 18:34:26 +0000</updated>
                            <resolved>Wed, 10 Nov 2021 19:07:23 +0000</resolved>
                                                    <fixVersion>4.0.0</fixVersion>
                    <fixVersion>4.2.0</fixVersion>
                    <fixVersion>4.4.0</fixVersion>
                    <fixVersion>5.0.0</fixVersion>
                    <fixVersion>5.1.0</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4181266" author="xgen-internal-githook" created="Wed, 10 Nov 2021 19:06:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries on views implementation (#6115) (#6119)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries-on views implementation&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/3f18dd3c044b56dc501acecae3cc11575c9d49d8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/3f18dd3c044b56dc501acecae3cc11575c9d49d8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4181215" author="xgen-internal-githook" created="Wed, 10 Nov 2021 18:51:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries on views implementation (#6115) (#6118)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries-on views implementation&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/c8aa96f7b036bdfe4f7655bff7511af00f8fcc2b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/c8aa96f7b036bdfe4f7655bff7511af00f8fcc2b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4181207" author="xgen-internal-githook" created="Wed, 10 Nov 2021 18:50:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries on views implementation (#6115) (#6117)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries-on views implementation&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/d0e1d4344526137372e0f559828e6539b5ad3d3b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/d0e1d4344526137372e0f559828e6539b5ad3d3b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4181202" author="xgen-internal-githook" created="Wed, 10 Nov 2021 18:49:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries on views implementation (#6115) (#6116)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries-on views implementation&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/f505c4f43cc5035471a16c86f758cafb7ef6629b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/f505c4f43cc5035471a16c86f758cafb7ef6629b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4181186" author="xgen-internal-githook" created="Wed, 10 Nov 2021 18:44:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries on views implementation (#6115)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11663&quot; title=&quot;There is no explanation of how queries against views are implemented&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11663&quot;&gt;&lt;del&gt;DOCS-11663&lt;/del&gt;&lt;/a&gt; queries-on views implementation&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2909bc5ac94626bea9493c1a441f68d9a45355ce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2909bc5ac94626bea9493c1a441f68d9a45355ce&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000aNnozIAC]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 24 May 2018 06:20:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 13 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-1769</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_14873" key="com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker">
                        <customfieldname>External Reviewer</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[william.byrne@mongodb.com]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 13 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jason.price@mongodb.com</customfieldvalue>
            <customfieldvalue>william.byrne@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htwoj3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr86mn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5507">ServerDocs2021: Oct26 - Nov2</customfieldvalue>
    <customfieldvalue id="5508">ServerDocs2021: Nov2 - Nov9</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htwarj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>