<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:19 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-3181] Add option to listDatabases to only get db names, not size info</title>
                <link>https://jira.mongodb.org/browse/SERVER-3181</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt; I have about 29377 files (including datafile and nsfile), 13666 databases. The total size is about 1TB. The mongod started with parameters &quot;smallfiles&quot; and &quot;noprealloc&quot;. &lt;br/&gt;
When I run the command listDatabases, it takes too long on calculating &quot;sizeOnDisk&quot; and determining the empty of database, more than a hour sometimes. But I just need a list of database names. An option to not display size or empty probably makes sense. &lt;br/&gt;
I found that mongod will receive the listDatabases command in the following cases:&lt;br/&gt;
1. Dump all databases use mongodump&lt;br/&gt;
2. A Member of replica set doing initialSync&lt;br/&gt;
3. Add a new shard to a cluster.&lt;br/&gt;
In these cases, listDatabases may cause mongod overload and can not do the normal queries.&lt;/p&gt;</description>
                <environment>Linux yq131 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
ext4 filesystem</environment>
        <key id="17784">SERVER-3181</key>
            <summary>Add option to listDatabases to only get db names, not size info</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="9">Done</resolution>
                                        <assignee username="geert.bosch@mongodb.com">Geert Bosch</assignee>
                                    <reporter username="elmerzhang">Lei Zhang</reporter>
                        <labels>
                            <label>PM248</label>
                            <label>bkp</label>
                            <label>commands</label>
                            <label>listDatabases</label>
                            <label>performance</label>
                    </labels>
                <created>Thu, 2 Jun 2011 03:48:41 +0000</created>
                <updated>Mon, 15 Nov 2021 15:11:40 +0000</updated>
                            <resolved>Mon, 20 Feb 2017 02:45:48 +0000</resolved>
                                                    <fixVersion>3.2.13</fixVersion>
                    <fixVersion>3.4.3</fixVersion>
                    <fixVersion>3.5.4</fixVersion>
                                    <component>Storage</component>
                                        <votes>10</votes>
                                    <watches>28</watches>
                                                                                                                <comments>
                            <comment id="1527580" author="xgen-internal-githook" created="Sun, 19 Mar 2017 11:40:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;GeertBosch&apos;, u&apos;name&apos;: u&apos;Geert Bosch&apos;, u&apos;email&apos;: u&apos;geert@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3181&quot; title=&quot;Add option to listDatabases to only get db names, not size info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3181&quot;&gt;&lt;del&gt;SERVER-3181&lt;/del&gt;&lt;/a&gt; Add nameOnly option to listDatabases&lt;/p&gt;

&lt;p&gt;(cherry picked from commit fff6d490ce43a6d3952cf2352f81c524b20e6f49)&lt;/p&gt;

&lt;p&gt;Substantial changes were necessary for the backport, as the listDatabases command does not&lt;br/&gt;
implement filtering.&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	jstests/concurrency/fsm_workloads/create_database.js&lt;br/&gt;
	src/mongo/db/commands/list_databases.cpp&lt;br/&gt;
	src/mongo/s/commands/cluster_list_databases_cmd.cpp&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d98f311b965505df9d7e6ff71084e8a2ad395f80&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d98f311b965505df9d7e6ff71084e8a2ad395f80&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1515951" author="xgen-internal-githook" created="Fri, 3 Mar 2017 23:48:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;GeertBosch&apos;, u&apos;name&apos;: u&apos;Geert Bosch&apos;, u&apos;email&apos;: u&apos;geert@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3181&quot; title=&quot;Add option to listDatabases to only get db names, not size info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3181&quot;&gt;&lt;del&gt;SERVER-3181&lt;/del&gt;&lt;/a&gt; Add nameOnly option to listDatabases&lt;/p&gt;

&lt;p&gt;(cherry picked from commit fff6d490ce43a6d3952cf2352f81c524b20e6f49)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1349ae75590dee95475c5098ec6babce415ebfff&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1349ae75590dee95475c5098ec6babce415ebfff&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1511590" author="milkie" created="Tue, 28 Feb 2017 20:28:04 +0000"  >&lt;p&gt;It is currently scheduled to be backported to the 3.2 branch.&lt;/p&gt;</comment>
                            <comment id="1511583" author="sallgeud" created="Tue, 28 Feb 2017 20:24:53 +0000"  >&lt;p&gt;Will this be backported to 3.2, as requested?&lt;/p&gt;</comment>
                            <comment id="1504108" author="xgen-internal-githook" created="Mon, 20 Feb 2017 02:43:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;GeertBosch&apos;, u&apos;name&apos;: u&apos;Geert Bosch&apos;, u&apos;email&apos;: u&apos;geert@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3181&quot; title=&quot;Add option to listDatabases to only get db names, not size info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3181&quot;&gt;&lt;del&gt;SERVER-3181&lt;/del&gt;&lt;/a&gt; Add nameOnly option to listDatabases&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fff6d490ce43a6d3952cf2352f81c524b20e6f49&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fff6d490ce43a6d3952cf2352f81c524b20e6f49&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1480421" author="sallgeud" created="Thu, 19 Jan 2017 17:27:54 +0000"  >&lt;p&gt;I&apos;m thinking this happens on more than &quot;initial sync&quot;, as we&apos;re seeing it happen 1x per replica member per minute.&lt;/p&gt;</comment>
                            <comment id="1322251" author="zyd_com@126.com" created="Wed, 13 Jul 2016 06:12:05 +0000"  >&lt;p&gt;continue the discuss on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24948&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;SERVER-24948&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I create a pull request, see &lt;a href=&quot;https://github.com/mongodb/mongo/pull/1100&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/1100&lt;/a&gt;, and I will use it in our production environment.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;#Scott Hernandez&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Scott Hernandez&lt;/a&gt; I have rethink this change based on your tips.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Design the change
	&lt;ul&gt;
		&lt;li&gt;I think it shouldn&apos;t include the size info, to make it more understandable.&lt;/li&gt;
		&lt;li&gt;&lt;/li&gt;
		&lt;li&gt;DBClient::getDatabaseNames return list&amp;lt;string&amp;gt;, so the change won&apos;t affect this interface.&lt;/li&gt;
		&lt;li&gt;I cannot think out any security related point.&lt;/li&gt;
		&lt;li&gt;It can be used from mongo shell, but I think it shouldn&apos;t set as default because many users may already use listDatabases to monitor the capacity of mongoDB.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Add sharding support
	&lt;ul&gt;
		&lt;li&gt;sharding support is also needed.&lt;/li&gt;
		&lt;li&gt;In sharding logic like getDBNamesListFromShard(), we can replace it with nameOnly version. etc&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Research effect on driver/client (library)
	&lt;ul&gt;
		&lt;li&gt;It won&apos;t affect the driver, new drivers can use this new option.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;In summary, my opinion is:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;add an option to listDatabases command for mongod and mongos&lt;/li&gt;
	&lt;li&gt;use this option in the situation where only dbname is needed like initial sync.&lt;/li&gt;
&lt;/ul&gt;

</comment>
                            <comment id="1318041" author="scotthernandez" created="Fri, 8 Jul 2016 14:00:28 +0000"  >&lt;p&gt;Taking a look at this for initial sync improvements for 3.4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="376398">SERVER-28924</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="376422">SERVER-28925</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="366016">DOCS-10011</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="380899">DOCS-10213</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="299468">SERVER-24948</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="345095">SERVER-27666</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="235632">SERVER-21066</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="469726">DOCS-11104</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="92887">SERVER-11051</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="377884">TOOLS-1653</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="48636">SERVER-6898</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="235633">SERVER-21067</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="14340"><![CDATA[v3.4]]></customfieldvalue>
    <customfieldvalue key="13440"><![CDATA[v3.2]]></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>Fri, 8 Jul 2016 14:00:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 47 weeks, 3 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 47 weeks, 3 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>sallgeud</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>elmerzhang</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>zyd_com@126.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroytb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6042</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1565">Storage 2017-03-06</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrv2uf:</customfieldvalue>

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