<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:47 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>[JAVA-661] DBCollection.count returns long, DBCursor.count truncates to int</title>
                <link>https://jira.mongodb.org/browse/JAVA-661</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Similar to &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-254&quot; title=&quot;Counting documents - 32 bits enough?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-254&quot;&gt;&lt;del&gt;CSHARP-254&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Mongo does not limit the number of document to 2^32, so &lt;tt&gt;DBCollection&lt;/tt&gt; has it right. DBCursor defers to the same server command, so there&apos;s no good reason to return something different here beyond not breaking code written against &lt;tt&gt;DBCursor.count&lt;/tt&gt;. Currently, &lt;tt&gt;count&lt;/tt&gt; on a cursor over a very large collection will truncate, which isn&apos;t great.&lt;/p&gt;

&lt;p&gt;Adding this detail as a separate issue so that the fix can be included in some release where forcing some client-app cleanup is ok.&lt;/p&gt;</description>
                <environment></environment>
        <key id="52079">JAVA-661</key>
            <summary>DBCollection.count returns long, DBCursor.count truncates to int</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="-1">Unassigned</assignee>
                                    <reporter username="matt.schemmel">Matt Schemmel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Oct 2012 19:53:28 +0000</created>
                <updated>Fri, 12 Jul 2013 13:56:50 +0000</updated>
                            <resolved>Fri, 12 Jul 2013 13:56:50 +0000</resolved>
                                    <version>2.8.0</version>
                    <version>2.9.0</version>
                    <version>2.9.1</version>
                                                    <component>API</component>
                    <component>Command Operations</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="379777" author="jeff.yemin" created="Fri, 12 Jul 2013 13:56:50 +0000"  >&lt;p&gt;We&apos;ve decided not to break binary compatibility, for the most part, even in 3.0.  However, 3.0 will have a new cursor-like interface where count returns a long&lt;/p&gt;</comment>
                            <comment id="170694" author="jeff.yemin" created="Wed, 3 Oct 2012 03:28:43 +0000"  >&lt;p&gt;This is an API change that breaks binary compatibility, so I&apos;m putting it in the 3.0 bucket for a major release.&lt;/p&gt;</comment>
                            <comment id="170536" author="matt.schemmel" created="Tue, 2 Oct 2012 19:57:42 +0000"  >&lt;p&gt;whether it&apos;s wise to have three billion documents in a query result is a different question...&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrjoxr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>28559</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>