-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryStream ending early, after only 1/14 of the query result set #1956
Comments
I'm also getting something very similar. |
Hi, Try getting rid of the disconnect() call in |
I moved the disconnect() to the I also implemented the method recommended in issue #1673, but it made no difference. |
I've found the solution for long running cursors: the timeout option needs to be set to false. Calling |
@rickhuizinga thanks! |
I have a collection with 700K+ records. It contains a legacy geo-location field and I wrote a script, using a QueryStream, to update the field into a GeoJSON compatible format.
The problem is that when using a QueryStream, the stream is ended after only 50635 documents.
The script code is as follows:
From the Mongo shell, I have confirmed that the same query has a count of 721,938 documents:
Response:
721938
Why is the QueryStream only streaming 50635 documents? Is it an internal cursor limitation?
The text was updated successfully, but these errors were encountered: