<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:55:46 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-1884] Allow limiting the amount of concurrent queries executed in the async driver</title>
                <link>https://jira.mongodb.org/browse/JAVA-1884</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When using the async driver, we have found we cannot limit the amount of concurrent queries executed in the async execution model.&lt;/p&gt;

&lt;p&gt;Although we&apos;d assumed limiting the amount of connections in the connection pool would limit the amount of queries possible in flight, it turns out, this is not how it works out all the time. When the query returns a larger amount of results than the batch size (20 by default), the retrieval of results in the async model will yield the connection back to the pool after each batch has executed. In this case, an additional query request may start, and the number of concurrent queries may become larger than the connection pool.&lt;/p&gt;

&lt;p&gt;We need a model to limit the amount of concurrent queries possible to prevent memory issues when too many queries would be processed at once. This a common use case, it would be very useful to support directly in the mongo async driver.&lt;/p&gt;</description>
                <environment></environment>
        <key id="216148">JAVA-1884</key>
            <summary>Allow limiting the amount of concurrent queries executed in the async driver</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="peterhendriks">Peter Hendriks</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jul 2015 15:43:50 +0000</created>
                <updated>Wed, 6 Dec 2017 10:52:13 +0000</updated>
                            <resolved>Wed, 6 Dec 2017 10:52:13 +0000</resolved>
                                                    <fixVersion>3.6.0</fixVersion>
                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1743967" author="ross@10gen.com" created="Wed, 6 Dec 2017 10:52:13 +0000"  >&lt;p&gt;I&apos;m closing this as &quot;Won&apos;t Fix&quot; as limiting the threadpool size by providing your own Executor service as per &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2561&quot; title=&quot;Allow for limited threadpool size in the Async driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2561&quot;&gt;&lt;del&gt;JAVA-2561&lt;/del&gt;&lt;/a&gt; is now the supported mechanisim to handle memory usage.&lt;/p&gt;

&lt;p&gt;There are no current plans to limit the number of queries in flight. If &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2561&quot; title=&quot;Allow for limited threadpool size in the Async driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2561&quot;&gt;&lt;del&gt;JAVA-2561&lt;/del&gt;&lt;/a&gt; doesn&apos;t meet your needs then please follow up with more information.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1663716" author="ross@10gen.com" created="Mon, 4 Sep 2017 10:19:49 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=peterhendriks&quot; class=&quot;user-hover&quot; rel=&quot;peterhendriks&quot;&gt;peterhendriks&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Apologies for the lack of response on this ticket, it appears to have fallen through the cracks.&lt;/p&gt;

&lt;p&gt;I think providing a limit to the thread pool size or being able to provide your own &lt;tt&gt;ExecutorService&lt;/tt&gt; should allow for finer grained control over memory resources.  Do you agree?  See: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2561&quot; title=&quot;Allow for limited threadpool size in the Async driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2561&quot;&gt;&lt;del&gt;JAVA-2561&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ross&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|ht2rxb:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1750">JVM Sprint 40</customfieldvalue>

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