<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:37:49 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-50] geo-spatial indexes could be damaged by field re-orderings</title>
                <link>https://jira.mongodb.org/browse/DOCS-50</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;The documentation for geo-spatial indexes describes support for co-ordinates stored as arrays or field values.  This is under the expectation that fields in documents are not reordered.  However, we can sometimes re-order fields:  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2592&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-2592&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;This can lead to broken indexes in the following scenario:&lt;br/&gt;
(2:31:54 PM) Chris Westin: so, if we&apos;re sometimes re-ordering fields on updates, won&apos;t that garble position dependent geo-spatial index values?  e.g. {loc:{long:40, lat:73}} gets reordered (alphabetically), and the index lookup gets whacked?&lt;br/&gt;
(2:37:49 PM) dev@10genchat.appspotchat.com: &lt;span class=&quot;error&quot;&gt;&amp;#91;scott&amp;#93;&lt;/span&gt; only if you add a new field to loc&lt;br/&gt;
(2:38:18 PM) dev@10genchat.appspotchat.com: &lt;span class=&quot;error&quot;&gt;&amp;#91;scott&amp;#93;&lt;/span&gt; It only reorders at the level you make changes&lt;br/&gt;
(2:39:04 PM) Chris Westin: yes.  then suppose i update the co-ordinates.  Does it look them up by the new order, and fail to find (or find the wrong ones) in the index, and possibly update the wrong index record?&lt;br/&gt;
(2:39:16 PM) dev@10genchat.appspotchat.com: &lt;span class=&quot;error&quot;&gt;&amp;#91;scott&amp;#93;&lt;/span&gt; yes&lt;br/&gt;
(2:39:37 PM) Chris Westin: excellent.  so current recommendation should be to use the array form of co-ordinates, until we fix that update bug&lt;br/&gt;
(2:39:38 PM) dev@10genchat.appspotchat.com: &lt;span class=&quot;error&quot;&gt;&amp;#91;scott&amp;#93;&lt;/span&gt; but only if the doc changes size&lt;br/&gt;
(2:39:43 PM) dev@10genchat.appspotchat.com: &lt;span class=&quot;error&quot;&gt;&amp;#91;scott&amp;#93;&lt;/span&gt; yes&lt;/p&gt;

&lt;p&gt;Until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2592&quot; title=&quot;The fields in a document are reordered (sorted alphabetically) when setting a field value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2592&quot;&gt;&lt;del&gt;SERVER-2592&lt;/del&gt;&lt;/a&gt; is fixed, perhaps the docs should recommend only using the array form for co-ordinate storage.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="21530">DOCS-50</key>
            <summary>geo-spatial indexes could be damaged by field re-orderings</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="cwestin">Chris Westin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Aug 2011 21:44:08 +0000</created>
                <updated>Mon, 30 Oct 2023 22:09:21 +0000</updated>
                            <resolved>Thu, 25 Aug 2011 21:51:08 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="50798" author="scotthernandez" created="Thu, 25 Aug 2011 21:51:08 +0000"  >&lt;p&gt;I updated the docs.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="14816">SERVER-2592</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 25 Aug 2011 21:51:08 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 25 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cwestin</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrsj7r:</customfieldvalue>

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

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

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