<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:22:38 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-50428] Expose diagnostics to client queries</title>
                <link>https://jira.mongodb.org/browse/SERVER-50428</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, the only way for clients to access query diagnostics is through the &lt;tt&gt;explain&lt;/tt&gt; command; there&apos;s no way to access that information when issuing normal queries. We&apos;d like to introduce a flag to &lt;tt&gt;find&lt;/tt&gt; (and potentially other query commands) that includes some basic diagnostic information (&lt;tt&gt;keysExamined&lt;/tt&gt;, &lt;tt&gt;docsExamined&lt;/tt&gt;, &lt;tt&gt;hasSortStage&lt;/tt&gt;, and ideally &lt;tt&gt;planSummary&lt;/tt&gt;) as part of the query response. This enables building smarter clients that have a better understanding of their performance impact.&lt;/p&gt;

&lt;p&gt;As an example use case, we&apos;d like background batch job clients to throttle themselves based on the load they generate on the database. In theory we could use number of queries issued or documents returned, but &lt;tt&gt;keysExamined&lt;/tt&gt;, &lt;tt&gt;docsExamined&lt;/tt&gt;, and &lt;tt&gt;hasSortStage&lt;/tt&gt; are a much more precise indicator of the performance impact of queries.&lt;/p&gt;

&lt;p&gt;I put together a quick &lt;a href=&quot;https://gist.github.com/evan-stripe/df24064abc5d61d665d0f4daf2cdbe5c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;sketch implementation&lt;/a&gt; to demonstrate what the interface might look like.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1448003">SERVER-50428</key>
            <summary>Expose diagnostics to client queries</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="evan@stripe.com">Evan Broder</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Aug 2020 18:29:32 +0000</created>
                <updated>Tue, 6 Dec 2022 02:11:41 +0000</updated>
                            <resolved>Tue, 22 Sep 2020 15:43:13 +0000</resolved>
                                                                    <component>Diagnostics</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="3399802" author="michael.gargiulo" created="Thu, 17 Sep 2020 19:17:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=evan%40stripe.com&quot; class=&quot;user-hover&quot; rel=&quot;evan@stripe.com&quot;&gt;evan@stripe.com&lt;/a&gt;&#160;I am going to leave this open and assign to the appropriate team. Since there are slight differences in this request from &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1812&quot; title=&quot;Add the ability to get query results and the query plan in one call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1812&quot;&gt;SERVER-1812&lt;/a&gt; we may be able to address this&#160;separately.&lt;/p&gt;

&lt;p&gt;cc &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kateryna.kamenieva&quot; class=&quot;user-hover&quot; rel=&quot;kateryna.kamenieva&quot;&gt;kateryna.kamenieva&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3364513" author="JIRAUSER1256019" created="Fri, 28 Aug 2020 17:13:36 +0000"  >&lt;p&gt;My bad, I didn&apos;t find that ticket when I was looking around, but yes it seems pretty similar. I think the biggest potential difference is that I don&apos;t need/particularly want a full explain plan, just the summary diagnostics. But if that&apos;s in line with the goals for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1812&quot; title=&quot;Add the ability to get query results and the query plan in one call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1812&quot;&gt;SERVER-1812&lt;/a&gt;, happy to dup and move the discussion over there.&lt;/p&gt;</comment>
                            <comment id="3363593" author="asya" created="Fri, 28 Aug 2020 04:30:47 +0000"  >&lt;p&gt;This seems like a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1812&quot; title=&quot;Add the ability to get query results and the query plan in one call&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1812&quot;&gt;SERVER-1812&lt;/a&gt;, no?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="13128">SERVER-1812</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 Aug 2020 07:55:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 20 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_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>
                            3 years, 20 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-query</customfieldvalue>
            <customfieldvalue>evan@stripe.com</customfieldvalue>
            <customfieldvalue>michael.gargiulo@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy1eav:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxo0jb:</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_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>
                                    <customfieldvalue><![CDATA[dmitry.agranat@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy10k7:</customfieldvalue>

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