<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:51:53 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-6233] We should clarify that range queries on non-array fields do not work with multi-key indexes</title>
                <link>https://jira.mongodb.org/browse/DOCS-6233</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;This page: &lt;a href=&quot;http://docs.mongodb.org/master/core/multikey-index-bounds/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/master/core/multikey-index-bounds/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It should mention the following limitation. If there is a compound multi-key index including a non-array field, then if this field is queried (and even if it&apos;s a leading field in the index and if queried alone with no array field) then MongoDB will not be able to intersect the bounds properly. And $elemMatch will not help because it is designed to work with array fields only.&lt;/p&gt;

&lt;p&gt;The only workaround is to create a non-multi key index on the non-array field and use that for the range queries.&lt;/p&gt;

&lt;p&gt;The situation is explained in detail in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6720&quot; title=&quot;Range query with compound multikey index scans more objects than needed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6720&quot;&gt;&lt;del&gt;SERVER-6720&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="230404">DOCS-6233</key>
            <summary>We should clarify that range queries on non-array fields do not work with multi-key indexes</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="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="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="dmitry.ryabtsev@mongodb.com">Dmitry Ryabtsev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Sep 2015 08:00:39 +0000</created>
                <updated>Thu, 21 Sep 2017 04:19:50 +0000</updated>
                            <resolved>Mon, 17 Jul 2017 22:29:08 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1624202" author="xgen-internal-githook" created="Mon, 17 Jul 2017 21:58:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kay-kim&apos;, u&apos;name&apos;: u&apos;kay&apos;, u&apos;email&apos;: u&apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-6233&quot; title=&quot;We should clarify that range queries on non-array fields do not work with multi-key indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-6233&quot;&gt;&lt;del&gt;DOCS-6233&lt;/del&gt;&lt;/a&gt; multikey index bounds&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/0cad3a9d3d3351427de468177495d8ae096d21a8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/0cad3a9d3d3351427de468177495d8ae096d21a8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1624189" author="xgen-internal-githook" created="Mon, 17 Jul 2017 21:44:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kay-kim&apos;, u&apos;name&apos;: u&apos;kay&apos;, u&apos;email&apos;: u&apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-6233&quot; title=&quot;We should clarify that range queries on non-array fields do not work with multi-key indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-6233&quot;&gt;&lt;del&gt;DOCS-6233&lt;/del&gt;&lt;/a&gt; multikey index bounds&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2ab6c53d97e28a6aa3b4ed8d19979d8710515cf3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2ab6c53d97e28a6aa3b4ed8d19979d8710515cf3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1620108" author="thomas.schubert" created="Wed, 12 Jul 2017 16:34:29 +0000"  >&lt;p&gt;Yes, that&apos;s right.&lt;/p&gt;</comment>
                            <comment id="1619538" author="dmitry.ryabtsev" created="Wed, 12 Jul 2017 02:18:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anonymous.user&quot; class=&quot;user-hover&quot; rel=&quot;anonymous.user&quot;&gt;anonymous.user&lt;/a&gt;, as far as I can tell &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15086&quot; title=&quot;Allow for efficient range queries over non-array fields in multikey indices&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15086&quot;&gt;&lt;del&gt;SERVER-15086&lt;/del&gt;&lt;/a&gt; is limited to WT only. Meaning it&apos;s still an issue in MongoDB v3.4 when MMAPv1 is used:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This feature is not supported for the MMAPv1 storage engine. MMAPv1 support for path-level multikey information is tracked in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22727&quot; title=&quot;Extend the MMAP index catalog to store path-level multikeyness info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22727&quot;&gt;&lt;del&gt;SERVER-22727&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22727&quot; title=&quot;Extend the MMAP index catalog to store path-level multikeyness info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-22727&quot;&gt;&lt;del&gt;SERVER-22727&lt;/del&gt;&lt;/a&gt; is still in the backlog.&lt;/p&gt;

&lt;p&gt;Or am I missing something?&lt;/p&gt;</comment>
                            <comment id="1433956" author="thomas.schubert" created="Mon, 14 Nov 2016 23:41:38 +0000"  >&lt;p&gt;Note that this is no longer the case in MongoDB 3.4: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15086&quot; title=&quot;Allow for efficient range queries over non-array fields in multikey indices&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15086&quot;&gt;&lt;del&gt;SERVER-15086&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="155427">SERVER-15086</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="294701">DOCS-8120</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 14 Nov 2016 23:41:38 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 30 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dmitry.ryabtsev@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrq37j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsng2f:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1324">KANBAN BUCKET</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrzh8n:</customfieldvalue>

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