<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:38:44 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-35069] Explain should include command being explained</title>
                <link>https://jira.mongodb.org/browse/SERVER-35069</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Updated summary:&lt;br/&gt;
Explain output include the full command which is being explained.  This could be helpful in situations where explain plans are reviewed &lt;b&gt;without&lt;/b&gt; having the originating command used to generated it.&lt;/p&gt;

&lt;p&gt;Original description:&lt;br/&gt;
Similar to the &lt;tt&gt;indexFilterSet&lt;/tt&gt; field, it may be worth having a flag to indicate what &lt;tt&gt;hint()&lt;/tt&gt;, if any, was requested with the explain.&#160; This could be helpful in situations where explain plans are reviewed &lt;b&gt;without&lt;/b&gt; having the originating command used to generated it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="546285">SERVER-35069</key>
            <summary>Explain should include command being explained</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="ruoxin.xu@mongodb.com">Ruoxin Xu</assignee>
                                    <reporter username="christopher.harris@mongodb.com">Chris Harris</reporter>
                        <labels>
                            <label>QFB</label>
                            <label>asya</label>
                            <label>neweng</label>
                            <label>storch</label>
                    </labels>
                <created>Fri, 18 May 2018 15:05:16 +0000</created>
                <updated>Sun, 29 Oct 2023 22:31:42 +0000</updated>
                            <resolved>Wed, 11 Nov 2020 23:22:53 +0000</resolved>
                                                    <fixVersion>4.9.0</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>14</watches>
                                                                                                                <comments>
                            <comment id="3483608" author="xgen-internal-githook" created="Tue, 10 Nov 2020 16:30:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ruoxin Xu&apos;, &apos;email&apos;: &apos;ruoxin.xu@mongodb.com&apos;, &apos;username&apos;: &apos;RuoxinXu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35069&quot; title=&quot;Explain should include command being explained&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35069&quot;&gt;&lt;del&gt;SERVER-35069&lt;/del&gt;&lt;/a&gt; Explain should include command being explained&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/afbc28ca7d7e5aae4eaff1609a55af8e79ef275f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/afbc28ca7d7e5aae4eaff1609a55af8e79ef275f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2596396" author="james.wahlin@10gen.com" created="Tue, 10 Dec 2019 14:58:40 +0000"  >&lt;p&gt;Reviewing this again, our tentative plan to address will be to add the original command object to the explain output as a last step in the explain command. We will only add if doing so will not push the explain object over the 16MB limit. We can consider partial application of the original command message for future work. It will be tricky and potentially fragile as it will have to parse explain output with handling for each supported command.&lt;/p&gt;

&lt;p&gt;When explain is run against mongos, only mongos should inject the original command as doing so at the shard level will record redundant information and make it much more likely that we will exceed the 16MB limit. Part of the work for this ticket will be to figure out how best to recognize this.&#160;&lt;/p&gt;</comment>
                            <comment id="2180393" author="asya" created="Thu, 14 Mar 2019 00:17:58 +0000"  >&lt;p&gt;I&#8217;m specifically thinking that explain of update is to see how the query portion is going to be executed.  We don&#8217;t currently explain anything about applying the update part so it seems ... strange to include it.&lt;/p&gt;</comment>
                            <comment id="2179866" author="charlie.swanson" created="Wed, 13 Mar 2019 17:35:45 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=asya&quot; class=&quot;user-hover&quot; rel=&quot;asya&quot;&gt;asya&lt;/a&gt; why should we truncate the command if the explain is too large? Should we consider truncating &apos;rejectedPlans&apos; instead? or perhaps &apos;serverInfo&apos;? Choosing the command feels a little forced based on the fact that it&apos;s the latest addition - is it really the best place to trim?&lt;/p&gt;

&lt;p&gt;Are you proposing just adding the name of the command and hint and then keeping things as-is so that the command fails if the result BSON is larger than 16MB?&lt;/p&gt;</comment>
                            <comment id="2179845" author="asya" created="Wed, 13 Mar 2019 17:20:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=charlie.swanson&quot; class=&quot;user-hover&quot; rel=&quot;charlie.swanson&quot;&gt;charlie.swanson&lt;/a&gt;  I think it&#8217;s fine/correct to exclude all the details of the command (maybe only if it&#8217;s big enough to blow out the limit). For instance for update we care about query portion not update portion. Aggregation could be very large but again just including which command is being run and whether a hint is specified is highest value. &lt;/p&gt;</comment>
                            <comment id="1945751" author="charlie.swanson" created="Thu, 12 Jul 2018 16:52:03 +0000"  >&lt;p&gt;We briefly started to implement this but then ran into some issues and adjusted course. One interesting note that came out of the progress here: If you&apos;re explaining a large command (for example a replace-mode update with a large document), we will potentially blow the 16MB document size limit by including the entire command in the output. It may be reasonable/acceptable to fail the operation in this case? Deserves some thought.&lt;/p&gt;</comment>
                            <comment id="1902161" author="christopher.harris" created="Fri, 25 May 2018 19:00:10 +0000"  >&lt;p&gt;Great thought.&#160; That sounds like a reasonable approach to me.&#160; Feel free to change the title/description to match.&#160;&#160;&lt;/p&gt;</comment>
                            <comment id="1898287" author="david.storch" created="Tue, 22 May 2018 15:20:36 +0000"  >&lt;p&gt;Instead, should explain output include the full command which is being explained? That would prevent us from ever asking questions about the properties of the original command when it is not available.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="617161">SERVER-37577</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="750683">SERVER-40905</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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, 22 May 2018 15:20:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 13 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_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-2117</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>
                            3 years, 13 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>christopher.harris@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>james.wahlin@mongodb.com</customfieldvalue>
            <customfieldvalue>ruoxin.xu@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htygnj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr4ynr:</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="3287">Query 2019-12-16</customfieldvalue>
    <customfieldvalue id="3617">Query 2020-10-19</customfieldvalue>
    <customfieldvalue id="3618">Query 2020-11-02</customfieldvalue>
    <customfieldvalue id="3619">Query 2020-11-16</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|hty2wv:</customfieldvalue>

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