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

Question: fetch_page filters #438

Closed
maininformer opened this issue May 19, 2020 · 3 comments
Closed

Question: fetch_page filters #438

maininformer opened this issue May 19, 2020 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists type: question Request for information or clarification. Not an issue.

Comments

@maininformer
Copy link

Hello. I am facing a problem that I cannot use certain filters with fetch_page, in particular this.

The code I am working with is using these filters. I can do these filterings on the application layer but I was really curious what the context is around this, does the datastore not support this anymore? is this an NDB only decision? and if possible, why was this decision made? Thank you.

@cguardia
Copy link
Contributor

@plumSemPy Hi. Datastore does not support these operations natively, so ndb has to perform multiple queries for them. No cursor is available for fetch_page because of this, due to each of the multiple queries used having its own cursor.

See also this comment:

https://github.com/googleapis/python-ndb/blob/master/google/cloud/ndb/_datastore_query.py#L498

@cguardia cguardia added the type: question Request for information or clarification. Not an issue. label May 19, 2020
@chrisrossi chrisrossi added the duplicate This issue or pull request already exists label May 19, 2020
@chrisrossi
Copy link
Contributor

Duplicate of #247

@chrisrossi chrisrossi marked this as a duplicate of #247 May 19, 2020
@maininformer
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants