-
Notifications
You must be signed in to change notification settings - Fork 67
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
alternative for fetch_page query limitation #247
Comments
Thanks for your bug report. I've looked into this and apparently it's a backend issue that the Firestore/Datastore team is working on right now. As soon as that's ready we'll add support for it in the library. Thanks for your patience. In the meantime, limit and offset should still be usable for these features. |
Thanks! for your response. |
I didn't receive one from the Firestore team, sorry. Hopefully I'll hear more after the holiday. |
Thanks!! hope to hear from you soon. |
The update I received from the Firestore team yesterday was that we've successfully implemented some of these queries on Firestore native mode, but that the Datastore mode change is pending behind some other related Datastore query work and may take significant additional time. I would strongly recommend switching to limit and offset for now. |
Thanks again @monikasingh20 for raising this. We are still blocked on implementation of In/Not-in queries for Cloud Datastore. This incompatibility with the Python 2 version is called out in documentation to hopefully help users work around this. https://googleapis.dev/python/python-ndb/latest/query.html#google.cloud.ndb.query.Query.fetch_page This feature is being added to Cloud Datastore however I don't have a timeline for when it will be released at this time. |
Hello @crwilcox, do we have any latest updates on the same. I was waiting if I could use it. |
I still don't have a firm timeline, though it is likely sometime next year. |
HI @crwilcox -- any news on this front? |
What seems to make this challenging is that ndb currently has to run multiple queries in parallel in order to support From an external perspective, the Just an idea; not sure if there's any reason that this wouldn't work. Of course, if Datastore/Firestore itself eventually natively supports |
@crwilcox Is support for this type of query still in the works? Thanks. |
Hello, any update on this topic? This is very limiting: using IN of course returns more results and thus needs pagination :( |
Support for IN/NOT_IN/NOT_EQUAL operators was released in Cloud Datastore in https://github.com/googleapis/python-datastore/releases/tag/v2.7.0, if that's helpful. |
Still getting this error with google-cloud-datastore==2.7.0: Also, google-cloud-ndb 1.11.1 (current version) has requirement google-cloud-datastore<2.0.0dev,>=1.7.0 which makes it incompatible with 2.7.0 |
We recently upgraded our dependencies, so now we depend on at least google-cloud-datastore 2.7.2. |
What is the latest on this? I rely on IN for my Py2 GAE code, have to migrate because of the py2 GAE end of life early next year. |
Please can we have an update on this issue? |
Still looking for an update on this issue, any news? |
@sorced-jim what size is the server limits? Looks like this went out with the 2.3.0 python-ndb release. |
The server side limits are documented at https://cloud.google.com/datastore/docs/concepts/queries#in. It's currently 30. |
Hi,
In current PY3 version 'fetch_page' or 'fetch_page_async' can't be used with query that uses 'OR', '!=', or 'IN'
But it works perfectly in PY27 ndb library.
As I found in previous issue that it's a feature degradation.
So, is there any alternative for it or any way to use fetch_page with 'OR', "!=", "IN" ?
As this feature supports in python2.7, so why can't we have such feature in python3.7 ?? urgent requirement.
The text was updated successfully, but these errors were encountered: