<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:16 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-60608] Avoid re-materializing the entire document between filter/project/sort/limit/skip and group in common cases</title>
                <link>https://jira.mongodb.org/browse/SERVER-60608</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We should be able to eliminate mkbson stage(s) to avoid unnecessary materialization when multiple pipeline stages are pushed down together to SBE.&lt;/p&gt;

&lt;p&gt;As of now, we were able to avoid mkbson stage on the direct top of a collection scan (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60101&quot; title=&quot;Eliminate intermediate mkobj stage from $group plans&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60101&quot;&gt;&lt;del&gt;SERVER-60101&lt;/del&gt;&lt;/a&gt;) and a mkbson stage between a group and a group (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60484&quot; title=&quot;Optimize field paths more generally&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60484&quot;&gt;&lt;del&gt;SERVER-60484&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;We need to generalize the idea so that it can be applied to other plan shape too.&lt;/p&gt;

&lt;p&gt;Ian&apos;s thought on a project stage:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Another thing I was just thinking we&apos;ll need is a way for a stage to indicate that a field &quot;might&quot; exist but has to be looked up in a document. For example if we have exclusion projection {a: 0, b: 0} and a subsequent stage needs field &quot;c&quot;, it will need to know that it has to look it up in an object somewhere. At the same time, if a subsequent stage needs field &quot;a&quot; it should be able to find out a query compile time that &quot;a&quot; does not exist. How to represent all of this in the stage builder, I&apos;m not sure yet. Maybe each field maps to a std::variant or something like that. I&apos;m just spitballing here though.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b&gt;Update at 3pm GMT 10/12/2021:&lt;/b&gt;&lt;br/&gt;
 The scope of the optimization in this ticket is quite limited as one can expect and it is only applied to top-level field paths. What it does is that we walk through group-by expression(s) and accumulation expressions and whenever we found a top-level field path, we push it down to a collection scan. Other than that, we just rely on &lt;tt&gt;generateExpression&lt;/tt&gt; generating traverse trees. And we will eliminate intermediary mkbson stages when $group or $project refers to only top-level fields and then ask children to not return mkbson object. Right not, the current work is more limited than this proposed scenario and so we wanted to extend its applicability a little bit more.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1895464">SERVER-60608</key>
            <summary>Avoid re-materializing the entire document between filter/project/sort/limit/skip and group in common cases</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="backlog-query-execution">Backlog - Query Execution</assignee>
                                    <reporter username="yoonsoo.kim@mongodb.com">Yoon Soo Kim</reporter>
                        <labels>
                            <label>sbe</label>
                    </labels>
                <created>Mon, 11 Oct 2021 22:07:03 +0000</created>
                <updated>Tue, 6 Dec 2022 00:52:58 +0000</updated>
                            <resolved>Tue, 18 Jan 2022 16:12:35 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="4297815" author="JIRAUSER1257640" created="Tue, 18 Jan 2022 16:12:35 +0000"  >&lt;p&gt;This was removed from PM-2267.&lt;/p&gt;</comment>
                            <comment id="4119365" author="ian.boros" created="Tue, 12 Oct 2021 16:52:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yoonsoo.kim&quot; class=&quot;user-hover&quot; rel=&quot;yoonsoo.kim&quot;&gt;yoonsoo.kim&lt;/a&gt;&#160;Ah, I meant my comment was written at the same time you were updating the description. I didn&apos;t touch the description myself.&lt;/p&gt;</comment>
                            <comment id="4119170" author="JIRAUSER1258488" created="Tue, 12 Oct 2021 15:54:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ian.boros&quot; class=&quot;user-hover&quot; rel=&quot;ian.boros&quot;&gt;ian.boros&lt;/a&gt;, I don&apos;t see and didn&apos;t see your updates. Could you update the description if there&apos;s another missing information?&lt;/p&gt;</comment>
                            <comment id="4117130" author="JIRAUSER1258488" created="Mon, 11 Oct 2021 23:08:43 +0000"  >&lt;p&gt;In response to &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=svilen.mihaylov&quot; class=&quot;user-hover&quot; rel=&quot;svilen.mihaylov&quot;&gt;svilen.mihaylov&lt;/a&gt;&#160;and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pawel.terlecki&quot; class=&quot;user-hover&quot; rel=&quot;pawel.terlecki&quot;&gt;pawel.terlecki&lt;/a&gt;&apos;s opinions,&#160;changed the status to &quot;needs scheduling&quot;&lt;/p&gt;</comment>
                            <comment id="4117121" author="pawel.terlecki" created="Mon, 11 Oct 2021 23:04:01 +0000"  >&lt;p&gt;+1 i feel we want to keep the effort relatively small even if we cannot get all the performance. The query optimizer will help with that.&lt;/p&gt;</comment>
                    </comments>
                    <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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 11 Oct 2021 23:01:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 3 weeks, 1 day 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>
                            2 years, 3 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-query-execution</customfieldvalue>
            <customfieldvalue>ethan.zhang@mongodb.com</customfieldvalue>
            <customfieldvalue>ian.boros@mongodb.com</customfieldvalue>
            <customfieldvalue>pawel.terlecki@mongodb.com</customfieldvalue>
            <customfieldvalue>yoonsoo.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0587b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2lpb:</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_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|i04ucn:</customfieldvalue>

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