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...
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) ...
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...
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...
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...
The "version" column must be indexed.
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...
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...