<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:06 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>[DOCS-13553] [Server] Clarify number of index entries per array</title>
                <link>https://jira.mongodb.org/browse/DOCS-13553</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;From the docs it wasn&apos;t clear to me that the number of index entries for an array field is based on the number of distinct values in the array. &lt;/p&gt;

&lt;p&gt;I read the docs below to imply that the number of entries is based on the number of values in the array.&lt;/p&gt;

&lt;p&gt;For example, this array &lt;span class=&quot;error&quot;&gt;&amp;#91;1,1,2&amp;#93;&lt;/span&gt; will generate 2 index entries, not 3. This was highlighted in NHTT training and I think the docs should explain it.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/core/index-multikey/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/core/index-multikey/&lt;/a&gt;&lt;br/&gt;
&quot;To index a field that holds an array value, MongoDB creates an index key for each element in the array. &quot;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/indexes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/indexes/&lt;/a&gt;&lt;br/&gt;
&quot;MongoDB creates separate index entries for every element of the array&quot;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1184175">DOCS-13553</key>
            <summary>[Server] Clarify number of index entries per array</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10951" iconUrl="https://jira.mongodb.org/images/icons/statuses/generic.png" description="">Internal Review</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="nick.larew@mongodb.com">Nicholas Larew</assignee>
                                    <reporter username="mark.callaghan@mongodb.com">Mark Callaghan</reporter>
                        <labels>
                            <label>proactive</label>
                            <label>release</label>
                            <label>reopened</label>
                            <label>server-docs-bug-bash</label>
                    </labels>
                <created>Tue, 25 Feb 2020 16:32:24 +0000</created>
                <updated>Mon, 6 Nov 2023 21:50:18 +0000</updated>
                                                                            <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>1</votes>
                                    <watches>15</watches>
                                                                                                                <comments>
                            <comment id="5564418" author="nick.larew" created="Thu, 13 Jul 2023 17:02:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/pull/3893&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/pull/3893&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4948073" author="JIRAUSER1264463" created="Wed, 2 Nov 2022 14:19:39 +0000"  >&lt;p&gt;Thanks for the confirm &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=spencer.brown%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;spencer.brown@mongodb.com&quot;&gt;spencer.brown@mongodb.com&lt;/a&gt;!&lt;/p&gt;</comment>
                            <comment id="4941736" author="spencer.brown" created="Mon, 31 Oct 2022 18:52:36 +0000"  >&lt;p&gt;These incorrect documentation pages still need to be fixed.&#160;&lt;/p&gt;</comment>
                            <comment id="4940384" author="edu.bot" created="Mon, 31 Oct 2022 16:04:26 +0000"  >&lt;p&gt;Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!&lt;/p&gt;</comment>
                            <comment id="3019746" author="ravind.kumar" created="Tue, 31 Mar 2020 18:27:17 +0000"  >&lt;p&gt;Whoops - I completely misread the ticket. Thanks for the clarity anyways!&lt;/p&gt;</comment>
                            <comment id="3019743" author="louis.williams" created="Tue, 31 Mar 2020 18:24:44 +0000"  >&lt;p&gt;Mark is correct, we only index&#160;&lt;b&gt;distinct&lt;/b&gt;&#160;keys from an array. A KeyString is effectively a tuple of (Value, RecordId), so any repeated values within a document in an array are deduplicated.&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/0487d9f93e2c9e30485f41c5c68a78d8d713e60a/src/mongo/db/index/index_access_method.h#L309&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Key generation&lt;/a&gt; achieves this by using a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/0487d9f93e2c9e30485f41c5c68a78d8d713e60a/src/mongo/db/storage/key_string.h#L908&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;std::set of KeyStrings&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We do not index a key&apos;s offset into the array. That actually wouldn&apos;t be useful information, because BSON arrays can have variable types. Storing an array offset would only be useful if each element were of the same size.&lt;/p&gt;

&lt;p&gt;We should probably update the docs to clarify that we only index each distinct element in an array.&lt;/p&gt;</comment>
                            <comment id="3005467" author="mark.callaghan" created="Fri, 27 Mar 2020 23:54:18 +0000"  >&lt;p&gt;Hoping for an answer&lt;/p&gt;</comment>
                            <comment id="3005466" author="mark.callaghan" created="Fri, 27 Mar 2020 23:54:01 +0000"  >&lt;p&gt;No objections from me&lt;/p&gt;</comment>
                            <comment id="3003367" author="backlog-server-pm" created="Thu, 26 Mar 2020 22:09:13 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this HELP ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to reopen this if we&apos;ve missed something.&lt;/p&gt;</comment>
                            <comment id="2914215" author="ravind.kumar" created="Thu, 27 Feb 2020 14:51:24 +0000"  >&lt;p&gt;Yeah this looks like a DOCS question. We can move it to DOCS and queue it for work, though given the upcoming release I cannot provide a schedule for when we can address this. Any objections &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mark.callaghan&quot; class=&quot;user-hover&quot; rel=&quot;mark.callaghan&quot;&gt;mark.callaghan&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="2910168" author="eoin.brazil" created="Wed, 26 Feb 2020 14:55:19 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ravind.kumar&quot; class=&quot;user-hover&quot; rel=&quot;ravind.kumar&quot;&gt;ravind.kumar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can you triage this as I think it&apos;s a Docs question ?&lt;/p&gt;

&lt;p&gt;Kindest regards,&lt;br/&gt;
Eoin&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>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14258" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Baseline start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 13 Jul 2023 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11450" key="com.atlassian.servicedesk:vp-origin">
                        <customfieldname>Customer Request Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        29 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-30314</customfieldvalue>
                        </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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            29 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>edu.bot</customfieldvalue>
            <customfieldvalue>eoin.brazil@mongodb.com</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
            <customfieldvalue>mark.callaghan@mongodb.com</customfieldvalue>
            <customfieldvalue>nick.larew@mongodb.com</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
            <customfieldvalue>sarah.olson@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer.brown@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwupav:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwin2n:</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwubk7:</customfieldvalue>

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