<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:24 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>[GODRIVER-2356] Add support for $explain</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2356</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The essence of request is very simple: to add `explain` as a natively supported feature.&lt;/p&gt;

&lt;p&gt;Currently, the only way to do it seems to be to call a `Database.RunCommand()`, which requires manually constructing the query document. Primitives like `operation.NewFind()` do not expose enough to construct query document with it.&lt;/p&gt;

&lt;p&gt;As a result, not only does the use of `explain` require extra effort, it is prone to mistakes when the query being explained will end up being not the same query as you would execute using the normal driver API.&lt;/p&gt;

&lt;p&gt;Use cases that I know of include diagnostic tools and testing mechanisms that validate existing queries in regard of conforming with indexes and sharding.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2007019">GODRIVER-2356</key>
            <summary>Add support for $explain</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="petr.ivanov.s@gmail.com">Peter Ivanov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Mar 2022 08:48:55 +0000</created>
                <updated>Tue, 5 Apr 2022 16:32:43 +0000</updated>
                            <resolved>Tue, 5 Apr 2022 16:32:43 +0000</resolved>
                                                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4458344" author="benji.rewis" created="Tue, 5 Apr 2022 16:32:43 +0000"  >&lt;p&gt;Will wait for changes from &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2252&quot; title=&quot;Add explain helper or options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2252&quot;&gt;DRIVERS-2252&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4458340" author="benji.rewis" created="Tue, 5 Apr 2022 16:32:08 +0000"  >&lt;p&gt;Just following up here, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=petr.ivanov.s%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;petr.ivanov.s@gmail.com&quot;&gt;petr.ivanov.s@gmail.com&lt;/a&gt;: the associated drivers ticket &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2252&quot; title=&quot;Add explain helper or options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2252&quot;&gt;DRIVERS-2252&lt;/a&gt; has been backlogged for now. I&apos;ll close this GODRIVER ticket in favor of that one.&lt;/p&gt;</comment>
                            <comment id="4445086" author="benji.rewis" created="Wed, 30 Mar 2022 16:12:49 +0000"  >&lt;p&gt;Thanks for your feature request, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=petr.ivanov.s%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;petr.ivanov.s@gmail.com&quot;&gt;petr.ivanov.s@gmail.com&lt;/a&gt;! Indeed, we do not offer an explain helper or explain options for &lt;tt&gt;Find&lt;/tt&gt; or &lt;tt&gt;Aggregate&lt;/tt&gt; operations. As stated in our cross-drivers &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#q--a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CRUD specification&lt;/a&gt;: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Explain has been determined to be not a normal use-case for a driver. We&apos;d like users to use the shell for this purpose.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Implementing explain as you&apos;ve described would require a cross-drivers change and a determination that this is a common enough use-case across drivers. I&apos;ve opened &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2252&quot; title=&quot;Add explain helper or options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2252&quot;&gt;DRIVERS-2252&lt;/a&gt; (and linked it to this ticket) to reconsider explain support.&lt;/p&gt;</comment>
                            <comment id="4436199" author="esha.bhargava" created="Fri, 25 Mar 2022 19:59:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=petr.ivanov.s%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;petr.ivanov.s@gmail.com&quot;&gt;petr.ivanov.s@gmail.com&lt;/a&gt; Thank you for reporting this issue. We&apos;ll look into it and get back to you soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2012291">DRIVERS-2252</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2006232">GODRIVER-2355</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0776k:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>