[SERVER-10047] 2dsphere $near does not yield Created: 27/Jun/13  Updated: 11/Jul/16  Resolved: 03/Feb/14

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 2.4.0
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: hari.khalsa@10gen.com
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9986 Refactor $geoNear searches into new q... Closed
Operating System: ALL
Participants:

 Description   

Need to add yielding. Can't really call yieldSometimes() because that requires a ClientCursor. Can probably call ClientCursor::staticYield directly from the s2 cursors, if we do our own prepareToYield etc.



 Comments   
Comment by hari.khalsa@10gen.com [ 04/Feb/14 ]

Near queries with a 2d index do not yield. Near queries with a 2dsphere index will yield as of 2.5.5.

The geoNear in .find() would yield in 2.5.5 but the geoNear command would not. This is now fixed in the forthcoming 2.6.0rc0

Comment by Githook User [ 04/Feb/14 ]

Author:

{u'username': u'hkhalsa', u'name': u'Hari Khalsa', u'email': u'hkhalsa@10gen.com'}

Message: SERVER-10047 the geonear command should yield
Branch: master
https://github.com/mongodb/mongo/commit/833d2a3f6ba4c8eb6c2daa52a66e45e4582d999d

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