Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.
This repository was archived by the owner on May 6, 2026. It is now read-only.

Higher limits/page_size values seem to be ignored #236

Description

@epluntze

Higher limits/page_size values seem to be ignored

Code example for fetch

In [4]: withclient.context():
...: users=User.query().fetch(limit=200)
...:
In [5]: len(users)
Out[5]: 200In [6]:
In [6]: withclient.context():
...: users=User.query().fetch(limit=300)
...:
...:
In [7]: len(users)
Out[7]: 300In [8]: withclient.context():
...: users=User.query().fetch(limit=400)
...:
...:
...:
In [9]: len(users)
Out[9]: 73774

Code example for fetch_page

In [23]: withclient.context():
...: query=User.query().order(-User.created)
...: users, next_cursor, more=query.fetch_page(page_size=200, start_cursor=None)
...:
In [24]:
In [24]: len(users)
Out[24]: 200In [25]: moreOut[25]: TrueIn [27]: next_cursor.urlsafe()
Out[27]: b'CkoKFAoHY3JlYXRlZBIJCMDFjOem5OECEi5qGXN-c2FuZGJveHgtZGV2ZWxvcG1lbnQtMDNyEQsSBFVzZXIYgIDAuvyUuwsMGAAgAQ=='In [28]: withclient.context():
...: query=User.query().order(-User.created)
...: users, next_cursor, more=query.fetch_page(page_size=400, start_cursor=None)
...:
...:
In [29]:
In [29]: len(users)
Out[29]: 73774In [30]: moreOut[30]: FalseIn [31]: next_cursor.urlsafe()
Out[31]: b'CkoKFAoHY3JlYXRlZBIJCICm8PCensECEi5qGXN-c2FuZGJveHgtZGV2ZWxvcG1lbnQtMDNyEQsSBFVzZXIYgICAgJ2UhwoMGAAgAQ=='

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions