<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:53:01 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-99] query optimizer scans object without indexed field in 1 direction</title>
                <link>https://jira.mongodb.org/browse/SERVER-99</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;see jstests/index_check3.js&lt;/p&gt;</description>
                <environment></environment>
        <key id="10214">SERVER-99</key>
            <summary>query optimizer scans object without indexed field in 1 direction</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="eliot">Eliot Horowitz</reporter>
                        <labels>
                    </labels>
                <created>Sat, 6 Jun 2009 22:54:31 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:18 +0000</updated>
                            <resolved>Wed, 22 Jul 2009 18:50:24 +0000</resolved>
                                                    <fixVersion>0.9.6</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10313" author="eliot" created="Wed, 22 Jul 2009 18:50:24 +0000"  >&lt;p&gt;add other types in subcase&lt;/p&gt;</comment>
                            <comment id="10312" author="aaron" created="Wed, 22 Jul 2009 17:39:14 +0000"  >&lt;p&gt;Um, the designated &apos;correct&apos; solution doesn&apos;t avoid scanning null values when the query is not a number, for example see new end of index_check3.js.&lt;/p&gt;</comment>
                            <comment id="10251" author="eliot" created="Fri, 10 Jul 2009 11:21:41 +0000"  >&lt;p&gt;closed since 0.9.6 went out&lt;/p&gt;</comment>
                            <comment id="10217" author="eliot" created="Thu, 2 Jul 2009 16:26:42 +0000"  >&lt;p&gt;correct solution is to change FieldBoundSet computation&lt;br/&gt;
right now  { a : &lt;/p&gt;
{ $lt : a }
&lt;p&gt; } is  MinKey -&amp;gt; &lt;/p&gt;
{ a : 1 }
&lt;p&gt; &lt;br/&gt;
needs to be &lt;/p&gt;
{ a : MIN_DOUBLE }
&lt;p&gt; -&amp;gt; &lt;/p&gt;
{ a : 1 }
</comment>
                            <comment id="10198" author="aaron" created="Mon, 8 Jun 2009 12:00:20 +0000"  >&lt;p&gt;So if you want to do a real fix, you can have the index scanning code skip indexed nulls when answering certain types of queries.  This would tie in with the work on SERVER-100.&lt;/p&gt;</comment>
                            <comment id="10197" author="eliot" created="Mon, 8 Jun 2009 11:51:58 +0000"  >
&lt;p&gt;right - that&apos;s the issue we need to fix &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="10196" author="aaron" created="Mon, 8 Jun 2009 11:41:04 +0000"  >&lt;p&gt;The issue here is that a missing field gets a value of &apos;null&apos; in the index, but the matcher does not allow a missing value to satisfy &lt;/p&gt;
{ $gt: 50 }
&lt;p&gt; or &lt;/p&gt;
{ $lt: 50 }
&lt;p&gt;.&lt;br/&gt;
For a quick fix you can make the test pass by replacing the last line with the following:&lt;/p&gt;

&lt;p&gt;assert.gt( 30 , t.find( { foo : &lt;/p&gt;
{ $gt : 50, $lt: 100 }
&lt;p&gt; } ).explain().nscanned , &quot;gt&quot; )&lt;/p&gt;

&lt;p&gt;which prevents index scanning of the null range&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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 8 Jun 2009 11:41:04 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 31 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpxy7:</customfieldvalue>

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

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

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