<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:02:51 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-23259] Report planSummary in per-operation diagnostic log message and profiler for all relevant ops/commands</title>
                <link>https://jira.mongodb.org/browse/SERVER-23259</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Ops/commands that are missing this information:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;distinct command&lt;/li&gt;
	&lt;li&gt;getMore command&lt;/li&gt;
	&lt;li&gt;findAndModify command&lt;/li&gt;
	&lt;li&gt;geoNear command&lt;/li&gt;
	&lt;li&gt;group command&lt;/li&gt;
	&lt;li&gt;getMore operation&lt;/li&gt;
	&lt;li&gt;delete command&lt;/li&gt;
	&lt;li&gt;update command&lt;/li&gt;
	&lt;li&gt;aggregate command&lt;/li&gt;
	&lt;li&gt;delete operation&lt;/li&gt;
	&lt;li&gt;update operation&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Additional notes:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;planSummary will be visible in db.currentOp() as soon as plan selection completes (this is currently only available for legacy OP_QUERY reads).&lt;/li&gt;
	&lt;li&gt;planSummary will be added as a new field to profiler entries.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="273975">SERVER-23259</key>
            <summary>Report planSummary in per-operation diagnostic log message and profiler for all relevant ops/commands</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="9">Done</resolution>
                                        <assignee username="james.wahlin@mongodb.com">James Wahlin</assignee>
                                    <reporter username="james.wahlin@mongodb.com">James Wahlin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Mar 2016 15:50:13 +0000</created>
                <updated>Sat, 13 Oct 2018 14:55:51 +0000</updated>
                            <resolved>Mon, 2 May 2016 19:46:18 +0000</resolved>
                                    <version>3.3.3</version>
                                    <fixVersion>3.3.6</fixVersion>
                                    <component>Diagnostics</component>
                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1252506" author="james.wahlin@10gen.com" created="Mon, 2 May 2016 19:46:18 +0000"  >&lt;p&gt;No documentation changes needed as planSummary is already documented for currentOp: &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/db.currentOp/#currentOp.planSummary&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/reference/method/db.currentOp/#currentOp.planSummary&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1252503" author="james.wahlin@10gen.com" created="Mon, 2 May 2016 19:44:50 +0000"  >&lt;p&gt;Attaching flame graph that shows perf output at commit 66c992d under the following process:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Insert 100K documents, with default _id and field &apos;a&apos;, where the value for &apos;a&apos; is a unique integer value&lt;/li&gt;
	&lt;li&gt;Create index for &apos;a&apos;&lt;/li&gt;
	&lt;li&gt;Start 4 shells, each performing a findOne() on &apos;a&apos; for an existing value, in a tight loop&lt;/li&gt;
	&lt;li&gt;Run &lt;tt&gt;perf record -q --call-graph fp -p `pidof mongod`&lt;/tt&gt; for 1 minute and kill&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;As per this chart, cost for a fast operation (in-memory find with exact index match) is roughly 1.5%.  It will be less for more expensive operations. &lt;/p&gt;

&lt;p&gt;We are not going to make performance improvements under this ticket but will review overall performance at the end of the 3.3 development cycle. If we were to optimize planSummary generation it could be done via:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Making string construction cheaper.&lt;/li&gt;
	&lt;li&gt;Avoid generating flattening the execution tree (or share flattened tree with getSummaryStats() call).&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="1246942" author="james.wahlin@10gen.com" created="Tue, 26 Apr 2016 17:19:57 +0000"  >&lt;p&gt;Changes committed for this ticket. Work remaining is to profile and address any significant regressions if found.&lt;/p&gt;</comment>
                            <comment id="1246939" author="xgen-internal-githook" created="Tue, 26 Apr 2016 17:17:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jameswahlin&apos;, u&apos;name&apos;: u&apos;James Wahlin&apos;, u&apos;email&apos;: u&apos;james.wahlin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23259&quot; title=&quot;Report planSummary in per-operation diagnostic log message and profiler for all relevant ops/commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23259&quot;&gt;&lt;del&gt;SERVER-23259&lt;/del&gt;&lt;/a&gt; Report planSummary in diagnostic log and profiler&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66c992d4b93f0c9e0fbe400ccf95344ec9437823&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66c992d4b93f0c9e0fbe400ccf95344ec9437823&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="274061">SERVER-23272</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="155688">SERVER-15102</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="178682">SERVER-16847</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="239491">SERVER-21470</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="120025" name="flame_graph.svg" size="866033" author="james.wahlin@mongodb.com" created="Mon, 2 May 2016 19:44:50 +0000"/>
                    </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>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="13440"><![CDATA[v3.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Apr 2016 17:17:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 41 weeks, 2 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>PM-278</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 41 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>james.wahlin@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkczz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsj6of:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1040">Query 14 (05/13/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|hs9v7j:</customfieldvalue>

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