Menu
  • HOME
  • TAGS

Is there a maximum size for index numbers in Google Datastore

google-app-engine,objectify,google-datastore,gql

I think I have managed to figure out what the issue was. It appears that when using the App Engine console, for some reason the wrong value is being returned for the value of these long entities. I was able to replicate this using the new app engine console... I...

Why standard NDB query returns different result compared to GQL query?

python,google-app-engine,app-engine-ndb,gql

Be careful about using implicit None comparison: if status: emails = emails.filter(EmailQueue.status == status) Note that if 0: will evaluate to False. Instead, you should write: if status is not None: emails = emails.filter(EmailQueue.status == status) ...

Structured query over M to M in NDB

python,app-engine-ndb,gql,gqlquery

The for loop makes a number of requests and you can combine them into a single request. If your CourseSubscription is the same as the CourseInscription in your SO link above, then you could get a list of subscription keys and make a single get_multi() call to get all of...

Google App Engine Datastore delete entity by properties

python,google-app-engine,gae-datastore,gql

These things are very well explained in the documentation. (Which also states clearly that you should not be using the old db API, but the ndb one, but never mind.) 1. user = User.all().filter('name =', name).filter('password =', password).get() if user: user.delete() 2. user = User.all().filter('name =', 'John').filter('password =', '1234').get() if...

AppEngine DataStore - GQL not returning any results

php,google-app-engine,gql

It looks like you are using my php-gds library from here: https://github.com/tomwalder/php-gds If so, then the problem is likely that you have not explicity requested the "name" property be indexed by Datastore. When defining your Schema, you need to pass the optional second parameter "TRUE" in order for queries to...

ORDER BY in appengine DataViewer using GQL doesnt work for one column

google-app-engine,gql

The "version" column must be indexed.

ndb query select both __key__ and properties simultaneously

google-app-engine,app-engine-ndb,gql,gqlquery

Have you read the docs on projection queries and tried it ? https://developers.google.com/appengine/docs/python/ndb/queries#projection Everything you need is in the documentation. If you perform a projection query on "name" for instance you will get objects back that include the key and the single property "name", if you used name and order...

Google App Engine - BadArgumentError - don't understand why

python,google-app-engine,gql

I suspect that the problem is that your code is not idempotent. App Engine does not guarantee that any particular task will only be executed once. It is therefore possible for your task to run, delete the entity, then run again and fail to find it. You should simply check...