<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:11 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-2174] support db.stats(1024*1024)</title>
                <link>https://jira.mongodb.org/browse/SERVER-2174</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the same way you can do db.cool.stats(1024*1024)&lt;/p&gt;</description>
                <environment></environment>
        <key id="13854">SERVER-2174</key>
            <summary>support db.stats(1024*1024)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Dec 2010 01:15:12 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:18 +0000</updated>
                            <resolved>Mon, 4 Apr 2011 22:34:46 +0000</resolved>
                                                    <fixVersion>1.9.0</fixVersion>
                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="27771" author="auto" created="Mon, 4 Apr 2011 22:34:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: support scale option to dbstats command &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2174&quot; title=&quot;support db.stats(1024*1024)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2174&quot;&gt;&lt;del&gt;SERVER-2174&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fa7fbbb1f66ec5e189f6deba58564b72c2e4cbef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fa7fbbb1f66ec5e189f6deba58564b72c2e4cbef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="22824" author="adrien" created="Sun, 30 Jan 2011 14:43:20 +0000"  >&lt;p&gt;Concerned by Pull Request #20 : &lt;a href=&quot;https://github.com/mongodb/mongo/pull/20&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/20&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="22764" author="adrien" created="Thu, 27 Jan 2011 21:52:47 +0000"  >&lt;p&gt;Allright... now I know what to do this week-end &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="22763" author="scotthernandez" created="Thu, 27 Jan 2011 21:51:03 +0000"  >&lt;p&gt;Yes, but if you don&apos;t change the default at the server, but at the shell there is less chance of that.&lt;/p&gt;

&lt;p&gt;It might be breaking... but much more usable for interactive use.&lt;/p&gt;</comment>
                            <comment id="22760" author="adrien" created="Thu, 27 Jan 2011 21:40:30 +0000"  >&lt;p&gt;Go =&amp;gt; Gb (Sorry, I was thinking in French with French units &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;)&lt;/p&gt;

&lt;p&gt;Set the &quot;human&quot; option as default could impact scripts which are parsing these values, no ? &lt;/p&gt;</comment>
                            <comment id="22759" author="scotthernandez" created="Thu, 27 Jan 2011 21:38:25 +0000"  >&lt;p&gt;Yeah, that could be useful. I&apos;d even argue that the shell should use that as the default formatting.&lt;/p&gt;

&lt;p&gt;What is the measurement &quot;Go&quot;? Is that a language thing?&lt;/p&gt;

&lt;p&gt;I&apos;d lean towards human as the option name; who doesn&apos;t wants their stats to be more &quot;human&quot;?&lt;/p&gt;</comment>
                            <comment id="22757" author="adrien" created="Thu, 27 Jan 2011 21:32:52 +0000"  >&lt;p&gt;Ok, thanks for this information Scott !&lt;/p&gt;

&lt;p&gt;I was working on a human-readable option from the shell, auto-adjusting units and decimal values.&lt;/p&gt;

&lt;p&gt;MongoShell :&lt;br/&gt;
&amp;gt; db.c.stats( &lt;/p&gt;
{ autounit: True }
&lt;p&gt; )&lt;/p&gt;

&lt;p&gt;...&lt;br/&gt;
        &quot;avgObjSize&quot; : 8.756 ko, &lt;br/&gt;
        &quot;storageSize&quot; : 32,6 Go, &lt;br/&gt;
        &quot;totalIndexSize&quot;: 24,1 Go&lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;Could it be useful ?&lt;/p&gt;</comment>
                            <comment id="22756" author="scotthernandez" created="Thu, 27 Jan 2011 20:49:30 +0000"  >&lt;p&gt;The value passed in is used to divide the number of bytes by, the scale That value would get you MB, yes. Rounding is important here.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.c.stats&lt;br/&gt;
function (scale) {&lt;br/&gt;
    return this._db.runCommand(&lt;/p&gt;
{collstats:this._shortName, scale:scale}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;&amp;gt; db.thumbnails.stats(1024)&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;davpix.thumbnails&quot;,&lt;br/&gt;
        &quot;count&quot; : 101,&lt;br/&gt;
        &quot;size&quot; : 856,&lt;br/&gt;
        &quot;avgObjSize&quot; : 8.475247524752476,&lt;br/&gt;
        &quot;storageSize&quot; : 204800,&lt;br/&gt;
        &quot;numExtents&quot; : 1,&lt;br/&gt;
        &quot;nindexes&quot; : 0,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 204800,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 0,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 0,&lt;br/&gt;
        &quot;indexSizes&quot; : {&lt;/p&gt;

&lt;p&gt;        },&lt;br/&gt;
        &quot;capped&quot; : 1,&lt;br/&gt;
        &quot;max&quot; : 2147483647,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.thumbnails.stats(1024*1024)&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;davpix.thumbnails&quot;,&lt;br/&gt;
        &quot;count&quot; : 101,&lt;br/&gt;
        &quot;size&quot; : 0,&lt;br/&gt;
        &quot;avgObjSize&quot; : 0,&lt;br/&gt;
        &quot;storageSize&quot; : 200,&lt;br/&gt;
        &quot;numExtents&quot; : 1,&lt;br/&gt;
        &quot;nindexes&quot; : 0,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 200,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 0,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 0,&lt;br/&gt;
        &quot;indexSizes&quot; : {&lt;/p&gt;

&lt;p&gt;        },&lt;br/&gt;
        &quot;capped&quot; : 1,&lt;br/&gt;
        &quot;max&quot; : 2147483647,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="22755" author="adrien" created="Thu, 27 Jan 2011 20:42:32 +0000"  >&lt;p&gt;Not sure to get it. Do you want to be able to display stats in megabytes ?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Jan 2011 20:42:32 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 46 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>adrien</customfieldvalue>
            <customfieldvalue>alvin</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</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|hrpaof:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21467</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|ht0fvj:</customfieldvalue>

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