Re: [google-appengine] checking if datastore key exists for one small operation only

2014-03-16 Thread Vinny P
I don't think you can do that for the price of a small operation. An alternative would be to insert the ID of an entity into memcache whenever it's accessed for other reasons, then check memcache first whenever you want to do the existence check. - -Vinny P Technology Media

[google-appengine] checking if datastore key exists for one small operation only

2014-03-13 Thread James Gilliam
i thought there was a way to see if a database key exists for the price of one small operation? doing keyobj = Key.from_path, followed by filter( '__key__ =', keyobj ), followed by query.get() using key only query, you are charged one large and one small operation and only get the key