<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:39 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-8135] Unused index-boundaries on multikey</title>
                <link>https://jira.mongodb.org/browse/SERVER-8135</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Given the index&lt;br/&gt;
{&lt;br/&gt;
  &quot;v&quot; : 1,&lt;br/&gt;
  &quot;key&quot; : &lt;/p&gt;
{
    &quot;pricings.parent_id&quot; : 1,
    &quot;start_at&quot; : 1
  }
&lt;p&gt;,&lt;br/&gt;
  &quot;ns&quot; : &quot;accounts.calls&quot;,&lt;br/&gt;
  &quot;name&quot; : &quot;pricings.parent_id_1_start_at_1&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;The query&lt;br/&gt;
{&lt;br/&gt;
  &quot;start_at&quot;: &lt;/p&gt;
{
    &quot;$gte&quot;: ISODate(&quot;2012-10-15&quot;),
    &quot;$lt&quot;: ISODate(&quot;2012-10-15 08:00&quot;)
   }
&lt;p&gt;,&lt;br/&gt;
   &quot;pricings.parent_id&quot;: 4&lt;br/&gt;
}&lt;br/&gt;
fails to use the upper bounds for start_at.&lt;/p&gt;

&lt;p&gt;The explain() is;&lt;br/&gt;
{&lt;br/&gt;
  &quot;cursor&quot; : &quot;BtreeCursor pricings.parent_id_1_start_at_1&quot;,&lt;br/&gt;
  &quot;isMultiKey&quot; : true,&lt;br/&gt;
  &quot;n&quot; : 2526,&lt;br/&gt;
  &quot;nscannedObjects&quot; : 349468,&lt;br/&gt;
  &quot;nscanned&quot; : 349468,&lt;br/&gt;
  &quot;nscannedObjectsAllPlans&quot; : 349468,&lt;br/&gt;
  &quot;nscannedAllPlans&quot; : 349468,&lt;br/&gt;
  &quot;scanAndOrder&quot; : false,&lt;br/&gt;
  &quot;indexOnly&quot; : false,&lt;br/&gt;
  &quot;nYields&quot; : 0,&lt;br/&gt;
  &quot;nChunkSkips&quot; : 0,&lt;br/&gt;
  &quot;millis&quot; : 550,&lt;br/&gt;
  &quot;indexBounds&quot; : &lt;/p&gt;
{
    &quot;pricings.parent_id&quot; : [
      [4,4]
    ],
    &quot;start_at&quot; : [
      [
        ISODate(&quot;2012-10-15T00:00:00Z&quot;),
        ISODate(&quot;292278995-01--2147483647T07:12:56.808Z&quot;)
      ]
    ]
  }
&lt;p&gt;,&lt;br/&gt;
  &quot;server&quot; : &quot;onatopp:27017&quot;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>Ubuntu 12.04, 12.10</environment>
        <key id="61554">SERVER-8135</key>
            <summary>Unused index-boundaries on multikey</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="3">Duplicate</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="rawler">Ulrik Mikaelsson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Jan 2013 12:57:58 +0000</created>
                <updated>Wed, 5 Jun 2013 12:55:48 +0000</updated>
                            <resolved>Mon, 21 Jan 2013 20:39:44 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>Index Maintenance</component>
                    <component>Querying</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="353525" author="hjrnunes" created="Wed, 5 Jun 2013 12:52:35 +0000"  >&lt;p&gt;In case someone ends up here like I do, here&apos;s some additional info on how to use the above mentioned $min/$max technique with Pymongo to work around this issue:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/cw82dRPX2hE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/cw82dRPX2hE&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!searchin/mongodb-user/How$20do$20I$20use$20cursor.min$20$2F$20cursor.max$20with$20Pymongo$3F/mongodb-user/MvwPermpgws/FqrZb80PyvcJ&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?fromgroups#!searchin/mongodb-user/How$20do$20I$20use$20cursor.min$20$2F$20cursor.max$20with$20Pymongo$3F/mongodb-user/MvwPermpgws/FqrZb80PyvcJ&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!searchin/mongodb-user/pymongo$3A$20cursor.next()$20works$20fine$2C$20cursor.count()$20fails/mongodb-user/hhldoKg-ius/PsQtrkDOf7MJ&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?fromgroups#!searchin/mongodb-user/pymongo$3A$20cursor.next()$20works$20fine$2C$20cursor.count()$20fails/mongodb-user/hhldoKg-ius/PsQtrkDOf7MJ&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="245857" author="aaron" created="Mon, 21 Jan 2013 20:39:44 +0000"  >&lt;p&gt;Hi Ulrik - I&apos;m going to resolve this as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4180&quot; title=&quot;Allow multiple constraints (on same field) within a $elemMatch clause to be used with a multikey index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4180&quot;&gt;&lt;del&gt;SERVER-4180&lt;/del&gt;&lt;/a&gt;.  Please feel free to reopen if you have further questions.&lt;/p&gt;</comment>
                            <comment id="240068" author="aaron" created="Tue, 15 Jan 2013 04:58:38 +0000"  >&lt;p&gt;Hi Ulrik,&lt;/p&gt;

&lt;p&gt;There is some background on this issue here:&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://groups.google.com/forum/#!msg/mongodb-user/oxL8wuVdITA/uWJHVbMd_-8J&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!msg/mongodb-user/oxL8wuVdITA/uWJHVbMd_-8J&lt;/a&gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;Until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6050&quot; title=&quot;Consider allowing $elemMatch applied to non arrays&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6050&quot;&gt;&lt;del&gt;SERVER-6050&lt;/del&gt;&lt;/a&gt; is implemented, our recommendation is to make your start_at field an array and convert your query to &lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
&quot;start_at&quot;: { &quot;$elemMatch&quot;: &lt;/p&gt;
{ &quot;$gte&quot;: ISODate(&quot;2012-10-15&quot;), &quot;$lt&quot;: ISODate(&quot;2012-10-15 08:00&quot;) }
&lt;p&gt; },&lt;br/&gt;
&quot;pricings.parent_id&quot;: 4&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;or use the min / max functions as described in the the above link.&lt;/p&gt;

&lt;p&gt;Let us know if you have any questions.&lt;/p&gt;</comment>
                            <comment id="236057" author="rawler" created="Thu, 10 Jan 2013 13:00:39 +0000"  >&lt;p&gt;Seems to be related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4180&quot; title=&quot;Allow multiple constraints (on same field) within a $elemMatch clause to be used with a multikey index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4180&quot;&gt;&lt;del&gt;SERVER-4180&lt;/del&gt;&lt;/a&gt;, which was closed without the relevant patch being applied.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="24298">SERVER-4180</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 15 Jan 2013 04:58:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 37 weeks 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>
                            10 years, 37 weeks 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>hjrnunes</customfieldvalue>
            <customfieldvalue>rawler</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk5ef:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>38994</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Create a collection with documents having a ISODate-column in the root document, and a collection of embedded documents with some criteria in each of the embedded document, and try to perform a query including both a range of dates, and a value for the embedded field. &lt;/p&gt;</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_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|ht02mv:</customfieldvalue>

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