[SERVER-29116] Issue with $geoNear optimizations Created: 09/May/17 Updated: 29/Jan/18 Resolved: 22/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Geo |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Manikandan TS | Assignee: | Mark Agarunov |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Steps To Reproduce: | Mongo Version 3.2.x ), $sort pipelines after $geoNear with radius 50 Kms |
| Participants: |
| Description |
|
We had our server running Mongo v3.0 and $geoNear worked fine. Our application has some Point of Interests spread throughout the city kept in a collection with 2dsphere index. We query the DB using aggregation query with $geoNear as mentioned below.
This query is supposed to get all the point of interests within a radius of 50 Kms. But when I simulate the user's location and run the queries, I get a plot as given below. Though there are multiple documents distributed throughout the city, there is only one document matching the above query whose location is marked by Blue dot. And the matrix shows the customer locations with green dot where the document is returned and red dot where the document is not returned for the query. So clearly point of interest is shown in places which are 49 kms away and sparsely populated documents but not within 10 kms away and densely populated documents. This seems to have introduced because of the optimizations mentioned here |
| Comments |
| Comment by Mark Agarunov [ 22/Jun/17 ] |
|
Hello manikandan.citeee@gmail.com, We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket. Thanks, |
| Comment by Mark Agarunov [ 05/Jun/17 ] |
|
Hello manikandan.citeee@gmail.com, Thank you for the report. We are investigating the issue and to clarify the behavior you're describing, I'd like to ask for some additional information.
Thanks, |