<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:29 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-1030] Using Sort with Custom Batch Size</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1030</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The query below does not get results beyond the configured batch size (set to 1000). Removing the .SetSortOrder portion of the statement, the query functions as expected and retrieves results beyond initial batch size. However, the results are not sorted as desired. &lt;/p&gt;

&lt;p&gt;var cursor = comps.Find(Query.EQ(&quot;ExperimentNumber&quot;, experimentNumber)).SetSortOrder(SortBy.Ascending(&quot;SerialNumber&quot;, &quot;DateTime&quot;));&lt;/p&gt;

&lt;p&gt;Not including a batch size, the following error is thrown:&lt;br/&gt;
QueryFailure flag was too much data for sort() with no index.  add an index or specify a smaller limit (response was &lt;/p&gt;
{ &quot;$err&quot; : &quot;too much data for sort() with no index.  add an index or specify a smaller limit&quot;, &quot;code&quot; : 10128 }
&lt;p&gt;).&lt;/p&gt;

&lt;p&gt;Both SerialNumber and DateTime are ascending indexes for the collection.&lt;br/&gt;
Total index size on collection is 1.1 GB.&lt;/p&gt;

&lt;p&gt;I would like to understand what is necessary to create a query with a sort and page through results using a custom batch size. &lt;/p&gt;</description>
                <environment>C# Driver 1.9.2 against single node MongoDB 2.4.4 running on Windows Server 2008R2 with 4GB RAM.</environment>
        <key id="152159">CSHARP-1030</key>
            <summary>Using Sort with Custom Batch Size</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jeffrey.a.lemmerman@medtronic.com">Jeff Lemmerman</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Tue, 12 Aug 2014 13:50:31 +0000</created>
                <updated>Fri, 5 Apr 2019 13:58:10 +0000</updated>
                            <resolved>Tue, 12 Aug 2014 14:55:09 +0000</resolved>
                                    <version>1.9.2</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs1aqv:</customfieldvalue>

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