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

Why is the default query limit 100 and not 1000? #159

Closed
cfoulston opened this issue Jan 7, 2016 · 3 comments
Closed

Why is the default query limit 100 and not 1000? #159

cfoulston opened this issue Jan 7, 2016 · 3 comments

Comments

@cfoulston
Copy link

I keep running into missing data issues because of this default limit of 100.

If I don't want to limit my queries (most of the time), why do I need to specify this maximum?
If I do want to limit my queries, then I should explicitly define the limit.

I understand that 1000 is the absolute maximum, and that fact is always in the back of my mind. But it seems strange to me that a default limit exists. Is there a reason why?

@TylerBrock
Copy link
Contributor

Probably because the default batch_size for a cursor in MongoDB is 100 objects.

@cfoulston
Copy link
Author

Well that's a shame.

@TylerBrock
Copy link
Contributor

Why not just edit the file and change the default? It's all open source.

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

No branches or pull requests

3 participants