<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:15:23 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-7716] change DBClientWithCommands count() to take a Query instead of a BSON object</title>
                <link>https://jira.mongodb.org/browse/SERVER-7716</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This member function:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;unsigned long long count (const string &amp;amp;ns, const BSONObj &amp;amp;query=BSONObj(), int options=0)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;of&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;mongo::DBClientWithCommands&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;only allows a &lt;tt&gt;BSONObj&lt;/tt&gt; for &lt;tt&gt;query&lt;/tt&gt;. Feature request: Allow complex &lt;tt&gt;Query&lt;/tt&gt; objects (&lt;tt&gt;mongo::Query::isComplex == true&lt;/tt&gt;). &lt;/p&gt;

&lt;p&gt;Work-arounds: Strip out complexity: &lt;/p&gt;

&lt;p&gt;    query.obj&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;query&amp;quot;&amp;#93;&lt;/span&gt;.embeddedObject()&lt;/p&gt;

&lt;p&gt;and use that as the parameter to &lt;tt&gt;count()&lt;/tt&gt; when &lt;tt&gt;isComplex == true&lt;/tt&gt; (useful in functions that accept complex &lt;tt&gt;Query&lt;/tt&gt; objects). Or build an interim non-complex query, use that with &lt;tt&gt;count()&lt;/tt&gt; and then add in &lt;tt&gt;sort&lt;/tt&gt;, &lt;tt&gt;explain&lt;/tt&gt;, etc. &lt;/p&gt;

&lt;p&gt;Arguably, this is unnecessary complexity. Allowing a &lt;tt&gt;Query&lt;/tt&gt; object will be consistent with a member function that counts the  &quot;number of objects ... that match the &lt;b&gt;query&lt;/b&gt;.&quot; You could change the parameter to &lt;tt&gt;&amp;amp;query=Query(&lt;/tt&gt;) as it should continue to accept &lt;tt&gt;BSONObj&lt;/tt&gt; objects, so no compatibility issues (that I can thank of).&lt;/p&gt;</description>
                <environment>Windows 7 64 SP1&lt;br/&gt;
MongoDB 2.2.0&lt;br/&gt;
MS VS 2010&lt;br/&gt;
C++ driver&lt;br/&gt;
</environment>
        <key id="56972">SERVER-7716</key>
            <summary>change DBClientWithCommands count() to take a Query instead of a BSON object</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="therefore">George Thompson</reporter>
                        <labels>
                            <label>driver</label>
                            <label>neweng</label>
                    </labels>
                <created>Tue, 20 Nov 2012 00:20:34 +0000</created>
                <updated>Sat, 7 Jan 2017 22:13:21 +0000</updated>
                            <resolved>Sat, 7 Jan 2017 22:13:21 +0000</resolved>
                                    <version>2.3.0</version>
                                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1471981" author="acm" created="Sat, 7 Jan 2017 22:13:21 +0000"  >&lt;p&gt;This ticket was filed to make an improvement to the C++ driver which used to be part of the server source code. During MongoDB 2.5 development, the C++ driver was separated out into a &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;dedicated github repo&lt;/a&gt;. Since that time, an entirely new C++ driver has been written using modern C++ development idioms, and up-to-date MongoDB Driver specifications.&lt;/p&gt;

&lt;p&gt;While some of the code referenced here does continue to live in the server, we are no longer making improvements to that code. Improvements to the C++ driver should no be made against the various branches in the new repository.&lt;/p&gt;</comment>
                            <comment id="1465812" author="kolisergej" created="Wed, 28 Dec 2016 10:01:49 +0000"  >&lt;p&gt;good day&lt;br/&gt;
here &lt;a href=&quot;https://github.com/mongodb/mongo/pull/1127&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;github link&lt;/a&gt; pull request with possible improvement&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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_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>Wed, 28 Dec 2016 10:01:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 5 weeks, 4 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>andrew.morrow@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 5 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>therefore</customfieldvalue>
            <customfieldvalue>kolisergej</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnh2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hstgcv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4426</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1380">Platforms 2017-01-23</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|ht0qsv:</customfieldvalue>

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