<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:08 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>[CSHARP-1272] FindFluent.SizeAsync()</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1272</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I wonder if there are any plans to include a SizeAsync (&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/method/cursor.size/#cursor.size)?&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/method/cursor.size/#cursor.size)?&lt;/a&gt;&lt;br/&gt;
I&apos;m not sure of the wire protocol, but it seems that it might be useful at least to imitate &quot;exists&quot; queries (Limit(-1).SizeAsync() instead of CountAsync() when you are only interested if there is at least one document).&lt;/p&gt;</description>
                <environment></environment>
        <key id="202897">CSHARP-1272</key>
            <summary>FindFluent.SizeAsync()</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="9">Done</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="onyxmaster">Aristarkh Zagorodnikov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 May 2015 09:21:58 +0000</created>
                <updated>Fri, 8 May 2015 13:03:12 +0000</updated>
                            <resolved>Fri, 8 May 2015 13:03:12 +0000</resolved>
                                    <version>2.0</version>
                                                    <component>Feature Request</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="908543" author="onyxmaster" created="Fri, 8 May 2015 12:20:17 +0000"  >&lt;p&gt;I checked the FindFluent.CountAsync source and it takes into account the skip/limit. Thank you again, looks like I should forget some more 1.x stuff =)&lt;/p&gt;</comment>
                            <comment id="908541" author="onyxmaster" created="Fri, 8 May 2015 12:18:10 +0000"  >&lt;p&gt;Thanks for pointing me to the IMongoCollection.CountAsync. And as for Skip-&amp;gt;Limit-&amp;gt;Count, I was under impression that it would ignore the skip and limit as 1.x driver did, if it&apos;s not the case, than that&apos;s great!&lt;/p&gt;</comment>
                            <comment id="908529" author="craiggwilson" created="Fri, 8 May 2015 12:12:52 +0000"  >&lt;p&gt;Hi Aristarkh,&lt;/p&gt;

&lt;p&gt;You can pass a CountOptions to CountAsync which can contain both a skip and a limit.  &lt;a href=&quot;http://api.mongodb.org/csharp/2.0/html/M_MongoDB_Driver_IMongoCollection_1_CountAsync.htm&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/csharp/2.0/html/M_MongoDB_Driver_IMongoCollection_1_CountAsync.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In addition, you can use Find and terminate it with a count: Find(x =&amp;gt; x.Age &amp;gt; 21).Skip(1).Limit(10).CountAsync()&lt;/p&gt;

&lt;p&gt;Craig&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|hs95kv:</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>