<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:43:01 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>[SERVER-36410] View definitions should permit specifying allowDiskUse:true and other aggregation options as part of the view.</title>
                <link>https://jira.mongodb.org/browse/SERVER-36410</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The &lt;tt&gt;createView()&lt;/tt&gt; command is just a wrapper for the &lt;tt&gt;create&lt;/tt&gt; command  That is why the  view creation options are a subset of those available when creating collections, rather than those for aggregation statements.  &lt;/p&gt;

&lt;p&gt;When querying a view with an &lt;tt&gt;aggregate&lt;/tt&gt; operation, users &lt;b&gt;can&lt;/b&gt; specify &lt;em&gt;allowDiskUse:true&lt;/em&gt; and non default values for allowDiskUse, cursor, maxTimeMS, and readConcern.  But when querying a view with a &lt;tt&gt;find&lt;/tt&gt; operation, users &lt;b&gt;cannot&lt;/b&gt; do that.&lt;/p&gt;

&lt;p&gt;When creating a view, I suggest &lt;em&gt;allowDiskUse:true&lt;/em&gt; and perhaps some of the other aggregation options should be able to be included in the definition.  The values for these fields would then become part of the aggregation statements generated for queries against the view. &lt;/p&gt;</description>
                <environment></environment>
        <key id="581187">SERVER-36410</key>
            <summary>View definitions should permit specifying allowDiskUse:true and other aggregation options as part of the view.</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="william.byrne@mongodb.com">William Byrne III</reporter>
                        <labels>
                            <label>read-only-views</label>
                    </labels>
                <created>Thu, 2 Aug 2018 04:24:40 +0000</created>
                <updated>Tue, 6 Dec 2022 03:22:37 +0000</updated>
                            <resolved>Fri, 17 Aug 2018 18:32:56 +0000</resolved>
                                                                    <component>Aggregation Framework</component>
                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1979127" author="kyle.suarez" created="Fri, 17 Aug 2018 18:32:56 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=william.byrne&quot; class=&quot;user-hover&quot; rel=&quot;william.byrne&quot;&gt;william.byrne&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The Query Team does not want to implement this feature. Looking at the scope and design documents, we did not explicitly call out the &lt;tt&gt;allowDiskUse&lt;/tt&gt; option, but there are some reasons behind our decision:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Users can create views on views. It&apos;s unclear what the semantics would be when querying a view on a view where the different views have varying options for &lt;tt&gt;allowDiskUse&lt;/tt&gt;, &lt;tt&gt;cursor&lt;/tt&gt;, etc.&lt;/li&gt;
	&lt;li&gt;It might encourage people to create views that differ solely on &quot;meta&quot; options. I think we would prefer people to use the options available on the find command itself, which should be passed on.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As a workaround, users can instead run the aggregate command on the view.&lt;/p&gt;</comment>
                            <comment id="1978917" author="asya" created="Fri, 17 Aug 2018 16:17:09 +0000"  >&lt;p&gt;&amp;gt; But when querying a view with a find operation, users cannot do that&lt;/p&gt;

&lt;p&gt;Why can&apos;t users specify maxTimeMS, readConcern, etc. when using &lt;tt&gt;find&lt;/tt&gt;?&lt;/p&gt;</comment>
                            <comment id="1963701" author="william.byrne" created="Thu, 2 Aug 2018 07:35:21 +0000"  >&lt;p&gt;Somewhat a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27440&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-27440&lt;/a&gt;.  That is for &lt;tt&gt;allowDiskUse&lt;/tt&gt; only, whereas this covers other aggregation modifiers like &lt;tt&gt;cursor&lt;/tt&gt; and &lt;tt&gt;readConcern&lt;/tt&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="339271">SERVER-27440</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000bTul1IAC]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 17 Aug 2018 16:17:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 25 weeks, 5 days 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 25 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-query</customfieldvalue>
            <customfieldvalue>kyle.suarez@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|hu4a4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr8j93:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu3wdr:</customfieldvalue>

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