Contents contributed and discussions participated by Esfand S
How to properly persist an unowned object? - Google App Engine for Java | Google Groups - 0 views
-
Another way of solving the problem is to have a Horse object with a "farmKey" field like so: class Horse { @PrimaryKey Key mKey Key farmKey } Then to get horses on a farm you'd do a query on Horse.kind with farmKey equal to your farm key. (Keys only query would make this faster) What's nice about this approach is that you don't need Horse key at all, just create a Horse object, give it the farm key, and persist it without worrying about it.
-
> > so a Farm can have some horses. I'd like to create a new horse, then > > put it on a farm, in one transaction.
-
> This requires Horse to be a descendant of Farm to be in the same > entity group. Therefore a horse could not move farms unless you > delete and recreate it with a new Key.
Parallel Asynchronous Datastore Commands with Twig 1.0 - Google App Engine for Java | G... - 1 views
-
Twig is an alternative to the standard persistence interfaces JDO and JPA, specifically designed to make the most of the underlying datastore's unique features.
-
Twig is the only interface to support direct unowned relationships so your code is not dependent on low-level datastore classes. It is the only interface to support OR queries by merging together multiple queries, sorting them and filtering out duplicates at the lowest level for performance.
-
Async datastore calls are not yet part of the low-level API. Twig uses the underlying Protocol Buffer layer classes to call ApiProxy.makeAsyncCall() instead of makeSyncCall. All the code is open source so you can check out how its done.
Async Datastore API - Google App Engine for Java | Google Groups - 0 views
-
> I'm still curious where does "method" name come from? That is just "Get" of "Put" or "RunQuery" etc. I have also checked in an implementation of Nick Johnsons ApiProxyHook which logs all this info: LoggingApiProxyDelegate. Its handy for seeing how what rpc calls are being made. If you want to discuss Twig specifics probably best to do that here http://groups.google.com/group/twig-persist
Prerelease: New Appengine Bulkloader - Google App Engine | Google Groups - 0 views
-
You should get prompted for authentication. Make sure remote_api is installed correctly on your server by visiting whatever you used for the --url argument in your browser. It should require you to log in then say "This request did not contain a necessary header"
Authenticating against App Engine from an Android app - Nick's Blog - 0 views
-
Authentication with App Engine, regardless of where you're doing it, is a three-stage process: Obtain an authentication token. This can be done with ClientLogin for installed apps, for example, or with AuthSub for a webapp. When logging in directly to an application, this is the part of the login process where your user sees a Google signin screen. Take that authentication token, and use it to obtain an authentication cookie. Use that authentication cookie in all subsequent requests.
Unowned relationship confusion - Google App Engine for Java | Google Groups - 0 views
-
Just my 2 cents: I was "forced" to use an "unowned relationship" for my application because I had very large objects: My parent object "Journey" contained thousands of "JourneyPoints" in a List element. A call to "makePersistent" constantly hit the 30s deadline. By modeling it as an unowned relationship and distributing the parent key by hand to the JourneyPoints everything was fine again and the performance was very good.
Deleting entities in bulk. - Google App Engine | Google Groups - 0 views
-
class DeleteFull(): def execute(self): deleting = model_class_name.all().order('__key__').fetch(100) while deleting: a = [] key = deleting[-1].key() for item in deleting: a.append(item) db.delete(a) deleting = model_class_name.all().filter('__key__ >', key).order('__key__').fetch(100) This purged everything, but it took a hell of a long time.
Deferred.java - gaevfs - Project Hosting on Google Code - 0 views
-
* Implements background tasks for * <a href="http://code.google.com/appengine/docs/java/overview.html">Google App * Engine for Java</a>, based on the * <a href="http://code.google.com/appengine/articles/deferred.html">Python 'deferred' * library</a>; simplifies use of the <a href="http://code.google.com/appengine/docs/java/taskqueue/overview.html"> * Task Queue Java API</a> by automatically handling the serialization and * deserializtion of complex task arguments.
gaevfs - Project Hosting on Google Code - 0 views
-
GaeVFS is an Apache Commons VFS plug-in that implements a distributed, writeable virtual file system for Google App Engine (GAE) for Java. GaeVFS is implemented using the GAE datastore and memcache APIs. The primary goal of GaeVFS is to provide a portability layer that allows you to write application code to access the file system--both reads and writes--that runs unmodified in either GAE or non-GAE servlet environments.
-
GaeVFS is an Apache Commons VFS plug-in that implements a distributed, writeable virtual file system for Google App Engine (GAE) for Java. GaeVFS is implemented using the GAE datastore and memcache APIs. The primary goal of GaeVFS is to provide a portability layer that allows you to write application code to access the file system--both reads and writes--that runs unmodified in either GAE or non-GAE servlet environments.
Creating Microsoft Office files on Google App Engine « Stephen Huey - 0 views
-
GaeVFS ships with a servlet that handles file uploads and abstracts how it writes them to its virtual file system.
-
GaeVFS is built on top of Apache Commons VFS, and you use their FileObject instead of the standard File class. There are some examples on the GaeVFS wiki, but I had to play around for a bit before I figured out some of the differences I needed to know.
« First
‹ Previous
341 - 360 of 592
Next ›
Last »
Showing 20▼ items per page