<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:45:36 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-37304] Extend $sort+$group+$first pipeline optimization to $last</title>
                <link>https://jira.mongodb.org/browse/SERVER-37304</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The optimization described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9507&quot; title=&quot;Optimize $sort+$group+$first pipeline to avoid full index scan&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9507&quot;&gt;&lt;del&gt;SERVER-9507&lt;/del&gt;&lt;/a&gt; can be applied to $group expressions that exclusively use $last accumulators by running the DISTINCT_SCAN in the reverse direction.&lt;/p&gt;</description>
                <environment></environment>
        <key id="609316">SERVER-37304</key>
            <summary>Extend $sort+$group+$first pipeline optimization to $last</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="13201">Fixed</resolution>
                                        <assignee username="alya.berciu@mongodb.com">Alya Berciu</assignee>
                                    <reporter username="justin.seyster@mongodb.com">Justin Seyster</reporter>
                        <labels>
                            <label>optimization</label>
                            <label>query-44-grooming</label>
                    </labels>
                <created>Mon, 24 Sep 2018 21:54:28 +0000</created>
                <updated>Sun, 29 Oct 2023 22:27:56 +0000</updated>
                            <resolved>Thu, 8 Dec 2022 10:25:23 +0000</resolved>
                                                    <fixVersion>6.3.0-rc0</fixVersion>
                                    <component>Aggregation Framework</component>
                                        <votes>1</votes>
                                    <watches>17</watches>
                                                                                                                <comments>
                            <comment id="5039930" author="xgen-internal-githook" created="Thu, 8 Dec 2022 10:23:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Alya Berciu&apos;, &apos;email&apos;: &apos;alya.berciu@mongodb.com&apos;, &apos;username&apos;: &apos;alyacb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-37304&quot; title=&quot;Extend $sort+$group+$first pipeline optimization to $last&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-37304&quot;&gt;&lt;del&gt;SERVER-37304&lt;/del&gt;&lt;/a&gt; Extend $sort+$group+$first optimization to $last&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5d6305f18e82a6824c2c32bfcccdea919332bb5b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5d6305f18e82a6824c2c32bfcccdea919332bb5b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4669950" author="anton.korshunov" created="Mon, 11 Jul 2022 10:10:45 +0000"  >&lt;p&gt;Marking for re-triage as it&apos;s been sitting in QO sprints long enough without any progress.&lt;/p&gt;</comment>
                            <comment id="2013529" author="eric.daniels@10gen.com" created="Tue, 25 Sep 2018 15:18:09 +0000"  >&lt;p&gt;Correct&lt;/p&gt;</comment>
                            <comment id="2013512" author="david.storch" created="Tue, 25 Sep 2018 15:10:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.daniels&quot; class=&quot;user-hover&quot; rel=&quot;eric.daniels&quot;&gt;eric.daniels&lt;/a&gt;, can you clarify whether this optimization is required by Stitch? It&apos;s the optimization from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9507&quot; title=&quot;Optimize $sort+$group+$first pipeline to avoid full index scan&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9507&quot;&gt;&lt;del&gt;SERVER-9507&lt;/del&gt;&lt;/a&gt;, except extended to work for &lt;tt&gt;$last&lt;/tt&gt; in addition to &lt;tt&gt;$first&lt;/tt&gt;. My understanding is that the pipelines which you need optimized will use &lt;tt&gt;$first&lt;/tt&gt;, but not &lt;tt&gt;$last&lt;/tt&gt;. Is that correct?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1660757">SERVER-55576</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="73561">SERVER-9507</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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>29.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Sep 2018 15:10:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 8 weeks, 6 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2574</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 8 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alya.berciu@mongodb.com</customfieldvalue>
            <customfieldvalue>anton.korshunov@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>eric.daniels@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>justin.seyster@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu8r9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr367r:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4706">Query Optimization 2021-06-14</customfieldvalue>
    <customfieldvalue id="4708">Query Optimization 2021-06-28</customfieldvalue>
    <customfieldvalue id="4710">Query Optimization 2021-07-12</customfieldvalue>
    <customfieldvalue id="4712">Query Optimization 2021-07-26</customfieldvalue>
    <customfieldvalue id="4718">QO 2021-09-06</customfieldvalue>
    <customfieldvalue id="5261">Query Optimization 2021-08-09</customfieldvalue>
    <customfieldvalue id="5264">QO 2021-09-20</customfieldvalue>
    <customfieldvalue id="5266">QO 2021-10-04</customfieldvalue>
    <customfieldvalue id="5268">QO 2021-10-18</customfieldvalue>
    <customfieldvalue id="5270">QO 2021-11-01</customfieldvalue>
    <customfieldvalue id="5272">QO 2021-11-15</customfieldvalue>
    <customfieldvalue id="5274">QO 2021-11-29</customfieldvalue>
    <customfieldvalue id="5276">QO 2021-12-13</customfieldvalue>
    <customfieldvalue id="5278">QO 2021-12-27</customfieldvalue>
    <customfieldvalue id="5280">QO 2022-01-10</customfieldvalue>
    <customfieldvalue id="5282">QO 2022-01-24</customfieldvalue>
    <customfieldvalue id="5284">QO 2022-02-07</customfieldvalue>
    <customfieldvalue id="5286">QO 2022-02-21</customfieldvalue>
    <customfieldvalue id="5288">QO 2022-03-07</customfieldvalue>
    <customfieldvalue id="5290">QO 2022-03-21</customfieldvalue>
    <customfieldvalue id="5335">QO 2021-08-23</customfieldvalue>
    <customfieldvalue id="5887">QO 2022-04-04</customfieldvalue>
    <customfieldvalue id="5889">QO 2022-04-18</customfieldvalue>
    <customfieldvalue id="5891">QO 2022-05-02</customfieldvalue>
    <customfieldvalue id="5893">QO 2022-05-16</customfieldvalue>
    <customfieldvalue id="5895">QO 2022-05-30</customfieldvalue>
    <customfieldvalue id="5897">QO 2022-06-13</customfieldvalue>
    <customfieldvalue id="5899">QO 2022-06-27</customfieldvalue>
    <customfieldvalue id="5901">QO 2022-07-11</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_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|hu8djb:</customfieldvalue>

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