-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
regression in 0.10.0 compared to 0.9.0 for queryset limit after count #1136
Comments
Yup, bit by the same bug. Was quite shocking to have multiple thousands of records that were formerly paginated suddenly not be. ;) What's particularly strange is that I can find no reason for this in the Temporarily working around this by cloning: This problem persists in 0.10.5. |
Wow, this is an awful regression. Will look at it with high priority. I believe the following should return
|
Apparently this was changed in #793 as a fix for #759, which complains that MongoEngine's behavior is inconsistent with PyMongo's behavior of Having tested it, it indeed looks consistent now:
I guess it's not as much a regression as a conscious change of behavior, which was included in the changelog (https://github.com/MongoEngine/mongoengine/pull/793/files#diff-b0508adba031c447ece5a495a136a3d1R8). It should've been communicated in a better fashion, with upgrade docs warning about this breaking change, but overall it seems to work as desired. Personally, I'd prefer the default |
The following test passes in 0.9.0 but fails in 0.10.0:
The text was updated successfully, but these errors were encountered: