<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:28 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-3227] space used for index depends on fields fullnames legnth</title>
                <link>https://jira.mongodb.org/browse/SERVER-3227</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Even if using non-compound indexes, indexes on 1 field = seems like every index entry stores full names of fields. In our test cases field names if very long and deep (many levels of supobjects).&lt;/p&gt;

&lt;p&gt;I think index may have name, ONE fields desription, order, and many entries with ONLY values, or values + field position.&lt;/p&gt;

&lt;p&gt;More space index occupy - less total objects count fits in RAM (even big RAM).&lt;br/&gt;
 and more space index occupy - indexes searches is slower.&lt;/p&gt;

&lt;p&gt;Compact indexes - happy customers.&lt;/p&gt;</description>
                <environment></environment>
        <key id="18059">SERVER-3227</key>
            <summary>space used for index depends on fields fullnames legnth</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="-1">Unassigned</assignee>
                                    <reporter username="lightket">Yan</reporter>
                        <labels>
                            <label>indexing</label>
                    </labels>
                <created>Thu, 9 Jun 2011 09:37:09 +0000</created>
                <updated>Mon, 29 Aug 2011 15:56:47 +0000</updated>
                            <resolved>Thu, 9 Jun 2011 11:14:57 +0000</resolved>
                                    <version>1.8.0</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="36824" author="lightket" created="Thu, 9 Jun 2011 13:38:27 +0000"  >&lt;p&gt;Thank you very much.&lt;br/&gt;
I checked again and index sizes match for all three test cases.&lt;br/&gt;
i was wrong, but it very cool.&lt;/p&gt;


&lt;p&gt;&amp;gt;for (i = 0; i &amp;lt; 700000; i++) {db.small.save(&lt;/p&gt;
{&quot;x&quot; : i}
&lt;p&gt;)};&lt;br/&gt;
&amp;gt;for (i = 0; i &amp;lt; 700000; i++) {db.big.save(&lt;/p&gt;
{&quot;long_long_long_long_long_long_long_long_long_long_long_long_name_x&quot; : i}
&lt;p&gt;)};&lt;br/&gt;
&amp;gt;for (i = 0; i &amp;lt; 700000; i++) {db.deep.save({long : {long : {long : {long : {long : {long : {long : {long : &lt;/p&gt;
{long :  i }
&lt;p&gt;}}}}}}}})};&lt;/p&gt;

&lt;p&gt;&amp;gt; db.small.ensureIndex(&lt;/p&gt;
{x : 1}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.big.ensureIndex(&lt;/p&gt;
{long_long_long_long_long_long_long_long_long_long_long_long_name_x : 1}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.deep.ensureIndex(&lt;/p&gt;
{&quot;long.long.long.long.long.long.long.long.long&quot; : 1}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;&amp;gt; db.small.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;test.small&quot;,&lt;br/&gt;
        &quot;count&quot; : 700000,&lt;br/&gt;
        &quot;size&quot; : 25200024,&lt;br/&gt;
        &quot;avgObjSize&quot; : 36.000034285714285,&lt;br/&gt;
        &quot;storageSize&quot; : 47824896,&lt;br/&gt;
        &quot;numExtents&quot; : 10,&lt;br/&gt;
        &quot;nindexes&quot; : 2,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 14495232,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 1,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 52453376,&lt;br/&gt;
        &quot;indexSizes&quot; : &lt;/p&gt;
{
                &quot;_id_&quot; : 29122560,
                &quot;x_1&quot; : 23330816
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.big.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;test.big&quot;,&lt;br/&gt;
        &quot;count&quot; : 700000,&lt;br/&gt;
        &quot;size&quot; : 70000020,&lt;br/&gt;
        &quot;avgObjSize&quot; : 100.00002857142857,&lt;br/&gt;
        &quot;storageSize&quot; : 99058176,&lt;br/&gt;
        &quot;numExtents&quot; : 11,&lt;br/&gt;
        &quot;nindexes&quot; : 2,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 25047552,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 1,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 52453376,&lt;br/&gt;
        &quot;indexSizes&quot; : &lt;/p&gt;
{
                &quot;_id_&quot; : 29122560,
                &quot;long_long_long_long_long_long_long_long_long_long_long_long_name_x_1&quot; : 23330816
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.deep.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;test.deep&quot;,&lt;br/&gt;
        &quot;count&quot; : 700000,&lt;br/&gt;
        &quot;size&quot; : 86800000,&lt;br/&gt;
        &quot;avgObjSize&quot; : 124,&lt;br/&gt;
        &quot;storageSize&quot; : 100610048,&lt;br/&gt;
        &quot;numExtents&quot; : 11,&lt;br/&gt;
        &quot;nindexes&quot; : 2,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 30056960,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 1,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 52453376,&lt;br/&gt;
        &quot;indexSizes&quot; : &lt;/p&gt;
{
                &quot;_id_&quot; : 29122560,
                &quot;long.long.long.long.long.long.long.long.long_1&quot; : 23330816
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="36818" author="eliot" created="Thu, 9 Jun 2011 11:14:58 +0000"  >&lt;p&gt;Field names are not stored in indexes for normal indexes.&lt;/p&gt;

&lt;p&gt;If you have a doc like { &quot;a&quot; : 1  , &quot;b&quot; : 2 , &quot;c&quot; : &lt;/p&gt;
{ &quot;x&quot; : 3 }
&lt;p&gt; }&lt;br/&gt;
These indexes do not have any field names:&lt;br/&gt;
(a)&lt;br/&gt;
(b)&lt;br/&gt;
(a,b)&lt;br/&gt;
(b,a)&lt;/p&gt;


&lt;p&gt;An index on &lt;br/&gt;
(c)&lt;br/&gt;
Will not have &quot;c&quot; in it, but will have &quot;x&quot; in it.&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Jun 2011 11:14:58 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 36 weeks, 6 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>eliot</customfieldvalue>
            <customfieldvalue>lightket</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroy7j:</customfieldvalue>

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

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

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