[SERVER-2944] Multi-location documents should have 1 key per hash Created: 13/Apr/11  Updated: 12/Jul/16  Resolved: 18/Apr/11

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 1.9.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

No reason to store multiple index keys for a document with multiple locations that geo-hash to the same value, since we need to look through all the locations in any case when we need to find a corresponding exact location for that hash value.

In most cases all locations should have a diff hash, unless there are very small differences between locations.



 Comments   
Comment by Greg Studer [ 18/Apr/11 ]

this is actually required by the index api, so a fix was necessary

Comment by auto [ 18/Apr/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: test for SERVER-2951 and SERVER-2944
Branch: master
https://github.com/mongodb/mongo/commit/47e15ceb886f2565e8431638510e21e5fd302442

Comment by auto [ 18/Apr/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: single hash key for multiple locations at same hash value SERVER-2944
Branch: master
https://github.com/mongodb/mongo/commit/52fdfd097f5dca5a83de85b9a7f47e3d206d068e

Generated at Thu Feb 08 03:01:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.