<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:30:45 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-13135] Some queries using 2dsphere indexes in 2.6 rc1 scan a *lot* more documents than 2.4</title>
                <link>https://jira.mongodb.org/browse/SERVER-13135</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Some geo-spatial queries in 2.6-rc1 scan a lot more documents than older versions. I have a 1.8 million doc collection. In 2.4, the query scans 440K rows, in 2.6, the query scans 1.4 million rows&lt;/p&gt;

&lt;p&gt;===== 2.4 ====&lt;br/&gt;
&amp;gt; db.ps.find({&apos;PROV_TIN_ADR.LATLONGDEGREE&apos;:{$near:{$geometry:&lt;/p&gt;
{type : &quot;Point&quot; ,coordinates : [-78.898619,35.9940329] }
&lt;p&gt; , $maxDistance :482803}}}).limit(300).explain()&lt;br/&gt;
{&lt;br/&gt;
        &quot;cursor&quot; : &quot;S2NearCursor&quot;,&lt;br/&gt;
        &quot;isMultiKey&quot; : true,&lt;br/&gt;
        &quot;n&quot; : 300,&lt;br/&gt;
        &quot;nscannedObjects&quot; : 300,&lt;br/&gt;
        &quot;nscanned&quot; : 441680,&lt;br/&gt;
        &quot;nscannedObjectsAllPlans&quot; : 300,&lt;br/&gt;
        &quot;nscannedAllPlans&quot; : 441680,&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; : 696,&lt;br/&gt;
        &quot;indexBounds&quot; : {&lt;/p&gt;

&lt;p&gt;        },&lt;br/&gt;
        &quot;nscanned&quot; : 441680,&lt;br/&gt;
        &quot;matchTested&quot; : NumberLong(32280),&lt;br/&gt;
        &quot;geoMatchTested&quot; : NumberLong(32280),&lt;br/&gt;
        &quot;numShells&quot; : NumberLong(8),&lt;br/&gt;
        &quot;keyGeoSkip&quot; : NumberLong(409400),&lt;br/&gt;
        &quot;returnSkip&quot; : NumberLong(3),&lt;br/&gt;
        &quot;btreeDups&quot; : NumberLong(0),&lt;br/&gt;
        &quot;inAnnulusTested&quot; : NumberLong(32280),&lt;br/&gt;
        &quot;server&quot; : &quot;apxxx:27017&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;=============== 2.6.rc1 ======================&lt;/p&gt;

&lt;p&gt;db.ps.find({&apos;PROV_TIN_ADR.LATLONGDEGREE&apos;:{$near:{$geometry:&lt;/p&gt;
{type : &quot;Point&quot; ,coordinates : [-78.898619,35.9940329] }
&lt;p&gt; , $maxDistance :482803}}}).limit(300).explain()&lt;br/&gt;
{&lt;br/&gt;
        &quot;cursor&quot; : &quot;S2NearCursor&quot;,&lt;br/&gt;
        &quot;isMultiKey&quot; : false,&lt;br/&gt;
        &quot;n&quot; : 300,&lt;br/&gt;
        &quot;nscannedObjects&quot; : 1405044,&lt;br/&gt;
        &quot;nscanned&quot; : 1405044,&lt;br/&gt;
        &quot;nscannedObjectsAllPlans&quot; : 1405044,&lt;br/&gt;
        &quot;nscannedAllPlans&quot; : 1405044,&lt;br/&gt;
        &quot;scanAndOrder&quot; : false,&lt;br/&gt;
        &quot;indexOnly&quot; : false,&lt;br/&gt;
        &quot;nYields&quot; : 10976,&lt;br/&gt;
        &quot;nChunkSkips&quot; : 0,&lt;br/&gt;
        &quot;millis&quot; : 8552,&lt;br/&gt;
        &quot;indexBounds&quot; : {&lt;/p&gt;

&lt;p&gt;        },&lt;br/&gt;
        &quot;server&quot; : &quot;apxxx:27017&quot;,&lt;br/&gt;
        &quot;filterSet&quot; : false&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="119262">SERVER-13135</key>
            <summary>Some queries using 2dsphere indexes in 2.6 rc1 scan a *lot* more documents than 2.4</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="hari.khalsa@10gen.com">hari.khalsa@10gen.com</assignee>
                                    <reporter username="rajeXsh">Rajesh Khot</reporter>
                        <labels>
                            <label>geospatial</label>
                    </labels>
                <created>Tue, 11 Mar 2014 15:31:49 +0000</created>
                <updated>Mon, 11 Jul 2016 17:19:32 +0000</updated>
                            <resolved>Thu, 13 Mar 2014 15:12:19 +0000</resolved>
                                    <version>2.6.0-rc1</version>
                                    <fixVersion>2.6.0-rc2</fixVersion>
                                    <component>Geo</component>
                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="515204" author="xgen-internal-githook" created="Thu, 13 Mar 2014 15:11:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hkhalsa&apos;, u&apos;name&apos;: u&apos;Hari Khalsa&apos;, u&apos;email&apos;: u&apos;hkhalsa@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13135&quot; title=&quot;Some queries using 2dsphere indexes in 2.6 rc1 scan a *lot* more documents than 2.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13135&quot;&gt;&lt;del&gt;SERVER-13135&lt;/del&gt;&lt;/a&gt; use key information to filter docs in s2near&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/09acefaf1e0e79813ebe9b594a78b148a1ffb6dd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/09acefaf1e0e79813ebe9b594a78b148a1ffb6dd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="515201" author="xgen-internal-githook" created="Thu, 13 Mar 2014 15:09:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hkhalsa&apos;, u&apos;name&apos;: u&apos;Hari Khalsa&apos;, u&apos;email&apos;: u&apos;hkhalsa@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13135&quot; title=&quot;Some queries using 2dsphere indexes in 2.6 rc1 scan a *lot* more documents than 2.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13135&quot;&gt;&lt;del&gt;SERVER-13135&lt;/del&gt;&lt;/a&gt; use key information to filter docs in s2near&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f111b99bd986fca3902730cf394d4f4260116dbe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f111b99bd986fca3902730cf394d4f4260116dbe&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="513358" author="rajexsh" created="Tue, 11 Mar 2014 16:05:52 +0000"  >&lt;p&gt;You will need to create the 2dsphere index before running the query..&lt;/p&gt;

&lt;p&gt;db.ps.ensureIndex(&lt;/p&gt;
{&quot;PROV_TIN_ADR.LATLONGDEGREE&quot; :&quot;2dsphere&quot;}
&lt;p&gt;)&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="39254" name="ps.json.gz" size="24009874" author="rajeXsh" created="Tue, 11 Mar 2014 15:31:49 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 Mar 2014 15:35:50 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 48 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_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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hari.khalsa@10gen.com</customfieldvalue>
            <customfieldvalue>rajeXsh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlzaf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>104714</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;Import the ps.json file in 2.4 and in 2.6&lt;/p&gt;

&lt;p&gt;Run the query to see the difference in nScanned&lt;/p&gt;

&lt;p&gt;db.ps.find({&apos;PROV_TIN_ADR.LATLONGDEGREE&apos;:{$near:{$geometry:&lt;/p&gt;
{type : &quot;Point&quot; ,coordinates : [-78.898619,35.9940329] }
&lt;p&gt; , $maxDistance :482803}}}).limit(300).explain()&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|hsh35z:</customfieldvalue>

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