<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:11:08 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-14760] Investigate changes in SERVER-53303: Make sort and group execution stages report number of spills to disk in explain</title>
                <link>https://jira.mongodb.org/browse/DOCS-14760</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    This ticket made changes to the explain output such that the sort and group exec stages report the number of times they spill to disk. This information might be too much detail for the docs, but flagging downstream attention to the Docs team just in case.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    Work done under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51026&quot; title=&quot;Collect number of keys sorted per operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51026&quot;&gt;&lt;del&gt;SERVER-51026&lt;/del&gt;&lt;/a&gt; recently extended the query execution systems runtime stats to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/237bd2c08cd42b721e9cf9b6829c90076fbff0eb/src/mongo/db/exec/plan_stats.h#L658-L659&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;track the individual number of times that a sort stage spills to disk&lt;/a&gt;. However, explain currently only reports whether a SORT &lt;tt&gt;PlanStage&lt;/tt&gt; used disk with a boolean; if disk was used, we don&apos;t indicate the number of times that we spilled sorted data to disk. We should take advantage of the work done in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51026&quot; title=&quot;Collect number of keys sorted per operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51026&quot;&gt;&lt;del&gt;SERVER-51026&lt;/del&gt;&lt;/a&gt; and report this &quot;spills&quot; metric for the SORT stage.&lt;/p&gt;

&lt;p&gt;Additionally, it would be good to report this as a runtime stat for the $sort &lt;tt&gt;DocumentSource&lt;/tt&gt;. We could also make a similar extension and report the number of spills for a $group. This could build on the work done in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48380&quot; title=&quot;Expose total data size in bytes processed by $sort and $group in agg execution stats explain&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48380&quot;&gt;&lt;del&gt;SERVER-48380&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49027&quot; title=&quot;Extend $group explain execution stats to report memory consumption per accumulator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49027&quot;&gt;&lt;del&gt;SERVER-49027&lt;/del&gt;&lt;/a&gt; to add additional runtime stats for $sort and $group to agg explain output.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="1859836">DOCS-14760</key>
            <summary>Investigate changes in SERVER-53303: Make sort and group execution stages report number of spills to disk in explain</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13203">Gone away</resolution>
                                        <assignee username="naomi.pentrel@mongodb.com">Naomi Pentrel</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Aug 2021 13:15:12 +0000</created>
                <updated>Mon, 13 Nov 2023 17:49:50 +0000</updated>
                            <resolved>Thu, 30 Sep 2021 15:18:58 +0000</resolved>
                                                    <fixVersion>5.0.0-rc0</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>2</watches>
                                                                                                                <comments>
                            <comment id="4094373" author="naomi.pentrel" created="Thu, 30 Sep 2021 15:18:58 +0000"  >&lt;p&gt;We do not cover execustion stats for individual stages inside the explain results, so we will not cover this.&lt;/p&gt;</comment>
                            <comment id="4021501" author="dbeng-pm-bot" created="Wed, 25 Aug 2021 13:15:15 +0000"  >&lt;p&gt;&lt;em&gt;Downstream changes updated for upstream &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53303&quot; title=&quot;Make sort and group execution stages report number of spills to disk in explain&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53303&quot;&gt;&lt;del&gt;SERVER-53303&lt;/del&gt;&lt;/a&gt;:&lt;/em&gt; &lt;br/&gt;
This ticket made changes to the explain output such that the sort and group exec stages report the number of times they spill to disk. This information might be too much detail for the docs, but flagging downstream attention to the Docs team just in case.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1563921">SERVER-53303</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 25 Aug 2021 13:15:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-15042</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, 18 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>naomi.pentrel@mongodb.com</customfieldvalue>
            <customfieldvalue>dbeng-pm-bot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzz62n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzj7gv:</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="5439">ServerDocs2021: Aug31 - Sep07</customfieldvalue>
    <customfieldvalue id="5445">ServerDocs2021: Sep07 - Sep14</customfieldvalue>
    <customfieldvalue id="5455">ServerDocs2021: Sep14 - Sep21</customfieldvalue>
    <customfieldvalue id="5485">ServerDocs2021: Sep21 - Sep28</customfieldvalue>
    <customfieldvalue id="5497">ServerDocs2021: Sep28 - Oct5</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|hzysbj:</customfieldvalue>

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