<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:01 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>[CXX-1819] No explain option on find/cursor</title>
                <link>https://jira.mongodb.org/browse/CXX-1819</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Currently, there is no way to get the explain output for finds or cursors for that matter.&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="928074">CXX-1819</key>
            <summary>No explain option on find/cursor</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="pieterwjordaanpc@gmail.com">Pieter Jordaan</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Sep 2019 18:06:50 +0000</created>
                <updated>Thu, 30 Jan 2020 23:24:01 +0000</updated>
                            <resolved>Thu, 30 Jan 2020 23:24:01 +0000</resolved>
                                    <version>3.4.0</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2774153" author="kevin.albertson" created="Thu, 30 Jan 2020 23:23:45 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pieterwjordaanpc%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;pieterwjordaanpc@gmail.com&quot;&gt;pieterwjordaanpc@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The drivers &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CRUD specification&lt;/a&gt; no longer specifies that drivers accept generic modifiers (like $explain) as part of the options to find. That is why the mongocxx::options::find class does not have it available. The Q&amp;amp;A in the CRUD spec explains the rationale:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Q: What about explain?&lt;br/&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. However, explain is still possible from a driver. For find, it can be passed as a modifier. Aggregate can be run using a runCommand method passing the explain option. In addition, server 3.0 offers an explain command that can be run using a runCommand method.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;If you are using a MongoDB server &amp;gt;= 3.0, you can use &lt;tt&gt;mongocxx::database::run_command&lt;/tt&gt; to pass the explain command:&lt;br/&gt;
&lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/explain/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/command/explain/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                    </comments>
                    <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvf35r:</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>