<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:44 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-4023] improve db.stats performance</title>
                <link>https://jira.mongodb.org/browse/SERVER-4023</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;db.stats takes an enormous amount of time to execute. I have around 5000 collections and db.stats takes approx. 30min to execute.&lt;/p&gt;

&lt;p&gt;Any reason why it was way faster in 1.8 ?&lt;/p&gt;</description>
                <environment>Linux</environment>
        <key id="23269">SERVER-4023</key>
            <summary>improve db.stats performance</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="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="dominik">Dominik Gehl</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Oct 2011 17:51:47 +0000</created>
                <updated>Tue, 6 Dec 2022 05:40:06 +0000</updated>
                            <resolved>Fri, 14 Sep 2018 20:19:46 +0000</resolved>
                                    <version>2.0.0</version>
                                                    <component>MMAPv1</component>
                    <component>Performance</component>
                                        <votes>5</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="68064" author="eliot" created="Mon, 21 Nov 2011 21:24:55 +0000"  >&lt;p&gt;cache extent meta data in NamespaceDetails&lt;/p&gt;</comment>
                            <comment id="67661" author="dominik" created="Fri, 18 Nov 2011 20:47:33 +0000"  >&lt;p&gt;Using 8GB of RAM, approx 15 minutes, using 16GB of RAM, still approx 7 minutes&lt;/p&gt;</comment>
                            <comment id="67660" author="scotthernandez" created="Fri, 18 Nov 2011 20:44:16 +0000"  >&lt;p&gt;How long did those stats take to return?&lt;/p&gt;</comment>
                            <comment id="67659" author="dominik" created="Fri, 18 Nov 2011 20:33:37 +0000"  >&lt;p&gt;PRIMARY&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;db&quot; : &quot;db0&quot;,&lt;br/&gt;
	&quot;collections&quot; : 961,&lt;br/&gt;
	&quot;objects&quot; : 29347980,&lt;br/&gt;
	&quot;avgObjSize&quot; : 1396.874217441882,&lt;br/&gt;
	&quot;dataSize&quot; : 40995436596,&lt;br/&gt;
	&quot;storageSize&quot; : 63500390400,&lt;br/&gt;
	&quot;numExtents&quot; : 6831,&lt;br/&gt;
	&quot;indexes&quot; : 9431,&lt;br/&gt;
	&quot;indexSize&quot; : 19347514704,&lt;br/&gt;
	&quot;fileSize&quot; : 100816388096,&lt;br/&gt;
	&quot;nsSizeMB&quot; : 64,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;PRIMARY&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;db&quot; : &quot;db1&quot;,&lt;br/&gt;
	&quot;collections&quot; : 1852,&lt;br/&gt;
	&quot;objects&quot; : 29690902,&lt;br/&gt;
	&quot;avgObjSize&quot; : 1903.0136255207067,&lt;br/&gt;
	&quot;dataSize&quot; : 56502191060,&lt;br/&gt;
	&quot;storageSize&quot; : 92368850944,&lt;br/&gt;
	&quot;numExtents&quot; : 13411,&lt;br/&gt;
	&quot;indexes&quot; : 30379,&lt;br/&gt;
	&quot;indexSize&quot; : 31860081456,&lt;br/&gt;
	&quot;fileSize&quot; : 156623699968,&lt;br/&gt;
	&quot;nsSizeMB&quot; : 64,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;and two other databases in the same size range&lt;/p&gt;</comment>
                            <comment id="66557" author="scotthernandez" created="Mon, 14 Nov 2011 15:25:48 +0000"  >&lt;p&gt;Can you post the response from db.stats() so we can see how large and how many collections your db is?&lt;/p&gt;</comment>
                            <comment id="62730" author="dominik" created="Wed, 26 Oct 2011 12:19:51 +0000"  >&lt;p&gt;In 1.8, I noticed that the &apos;first&apos; db.stats calls took some time (approx 5-10 min), but that after a few of them, response time became to be only a few seconds. So, it was possible to run monitoring agents in 1.8 (with db.stats), since after a few runs, the response time was &apos;fast enough&apos; to not generate any impact.&lt;/p&gt;

&lt;p&gt;In 2.0, response time does not seem to be related any more to the number of runs: it seems to always take the same amount of time (30min approx)&lt;/p&gt;</comment>
                            <comment id="62701" author="eliot" created="Wed, 26 Oct 2011 07:19:19 +0000"  >&lt;p&gt;How much faster in 1.8?&lt;br/&gt;
In 2.0 its designed to unlock a lot so as not to impact other operations.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000UaZ9eIAF]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Oct 2011 07:19:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 13 weeks, 2 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 13 weeks, 2 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>backlog-server-execution</customfieldvalue>
            <customfieldvalue>dominik</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroopr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4151</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_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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hszw1r:</customfieldvalue>

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