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

don't bother with count() if a limit has already been set #330

Closed

Conversation

glyphobet
Copy link
Contributor

the constructed query for count below strips off any limit and offset, and if limit is specified without offset, it returns the whole count, not the limited count.

the constructed query for count below strips off any limit and offset, and if limit is specified without offset, it returns the whole count, not the limited count.
@glyphobet
Copy link
Contributor Author

As with previous pull requests, the build on the upstream repository has passed, https://travis-ci.org/goodscloud/flask-restless/builds/28818595 indicating a problem with the travis cache on the master branch in jfinkels/flask-restless causing the pre-merge build to fail under pypy.

@jfinkels
Copy link
Owner

I merged a different solution to this, I think, from pull request #333. Which one is better?

@glyphobet
Copy link
Contributor Author

#333 is better, if you notice that one adds a third test, where limit is 5000, which fails on this branch.

@glyphobet glyphobet closed this Jul 15, 2014
@glyphobet glyphobet deleted the fix-count-helper-pt-III branch July 15, 2014 21:27
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

Successfully merging this pull request may close these issues.

None yet

2 participants