Skip to content
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

Queries should not specify a batchSize of zero by default #170

Closed
jmikola opened this issue Apr 25, 2017 · 0 comments
Closed

Queries should not specify a batchSize of zero by default #170

jmikola opened this issue Apr 25, 2017 · 0 comments
Labels
Milestone

Comments

@jmikola
Copy link
Contributor

jmikola commented Apr 25, 2017

The folks at ResearchGate are having an issue with find commands encountering errors from mongos due to the adapter defaulting the batchSize option to 0. Relevant code is:

See this comment in SERVER-28019 for more information.

Is there a particular reason that Alcaeus\MongoDbAdapter\AbstractCursor::$batchSize defaults to zero? Would leaving the property uninitialized (i.e. null) break compatibility for ODM or other dependent libraries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants