<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:08:18 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-5237] We&apos;re planning on changing our shard key.  We&apos;d like your opinion on whether it makes sense or not.</title>
                <link>https://jira.mongodb.org/browse/SERVER-5237</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have a GIS based database.  All documents contain longitude and latitude.  Currently we have our shard key set to longitude.  We are considering changing it to a combination of longitude and latitude.  We believe that, in doing so, we will not only greatly increase the cardinality of keys, but will also distribute our data more evenly across the shards.  We also expect to see an improvement in the time it takes to load and query data.  We&apos;d like your opinion on this.&lt;br/&gt;
Thanks in advance for you help.&lt;/p&gt;</description>
                <environment>Linux</environment>
        <key id="32439">SERVER-5237</key>
            <summary>We&apos;re planning on changing our shard key.  We&apos;d like your opinion on whether it makes sense or not.</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="-1">Unassigned</assignee>
                                    <reporter username="tshinnick">Tim Shinnick</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Mar 2012 16:18:44 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:26 +0000</updated>
                            <resolved>Sat, 17 Mar 2012 13:44:20 +0000</resolved>
                                    <version>2.0.3</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="99870" author="eliot" created="Sat, 17 Mar 2012 13:44:20 +0000"  >&lt;p&gt;let us know if you need any more help&lt;/p&gt;</comment>
                            <comment id="96930" author="tshinnick" created="Thu, 8 Mar 2012 20:37:38 +0000"  >&lt;p&gt;No.  Like I said, I&apos;m new to this.  Jeff Cramer asked me if I had opened a CS request, so I thought I was doing that.  But I see now that it&apos;s an &quot;issue&quot;.&lt;/p&gt;</comment>
                            <comment id="96925" author="eliot" created="Thu, 8 Mar 2012 20:27:48 +0000"  >&lt;p&gt;lat,lng,timestamp would be fine.&lt;/p&gt;

&lt;p&gt;Are you in CS?  If so we can move this there but didn&apos;t see that you were.&lt;/p&gt;</comment>
                            <comment id="96908" author="tshinnick" created="Thu, 8 Mar 2012 20:03:41 +0000"  >&lt;p&gt;I just got the answer to your precision question.  We keep 14 decimal points.  I also learned that adding &quot;type&quot; to our shard key wouldn&apos;t help, because there are too few values.  So we&apos;re considering adding epoch timestamp to lat/long.  That would make the key unique, right?  Is epoch timestamp a value people commonly use as part of their shard key?&lt;/p&gt;

&lt;p&gt;Eliot, as an aside, this is my first experience with Mongo and this online support.  Let me know if I&apos;m overstepping any boundaries.  I know you already answered my initial question.  Since then, I&apos;ve added a couple of new ones.  If I should be opening up a new CS request, let me know.&lt;/p&gt;

&lt;p&gt;Thanks again &lt;/p&gt;</comment>
                            <comment id="96619" author="eliot" created="Wed, 7 Mar 2012 23:57:30 +0000"  >&lt;p&gt;What granularity is lat/long?&lt;br/&gt;
As long as there aren&apos;t going to be a lot of docs at the same location, it should be plenty.&lt;br/&gt;
What is the precision of lat/long you are using?&lt;br/&gt;
Could there be 64mb of data at the same lat/long?  If so, then use all 3.&lt;/p&gt;</comment>
                            <comment id="96506" author="tshinnick" created="Wed, 7 Mar 2012 19:29:50 +0000"  >&lt;p&gt;I really thought you were going to suggest lat/long/type.  Is the reason that lat/long provide enough cardinality?&lt;/p&gt;</comment>
                            <comment id="96503" author="eliot" created="Wed, 7 Mar 2012 19:27:18 +0000"  >&lt;p&gt;Ok - so sharding on lat/long makes sense then.&lt;/p&gt;</comment>
                            <comment id="96501" author="tshinnick" created="Wed, 7 Mar 2012 19:19:22 +0000"  >&lt;p&gt;I just heard from the app team.  Most of the querying is done on latitude, longitude and type.&lt;/p&gt;</comment>
                            <comment id="96464" author="tshinnick" created="Wed, 7 Mar 2012 17:56:54 +0000"  >&lt;p&gt;Thanks for the quick response.  I&apos;m waiting to hear back from the app team.&lt;/p&gt;</comment>
                            <comment id="96420" author="eliot" created="Wed, 7 Mar 2012 16:30:07 +0000"  >&lt;p&gt;At first glance that seems to make sense.&lt;br/&gt;
Longitude is probably not enough cardinality.&lt;/p&gt;

&lt;p&gt;What is the most common way you query or modify the data?&lt;/p&gt;

&lt;p&gt;Might be a better way.&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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 7 Mar 2012 16:30:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 48 weeks, 4 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>
                            11 years, 48 weeks, 4 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>tshinnick</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroahj:</customfieldvalue>

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

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

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