Re: [appengine-java] Mapreduce, mutationPool, and child entities

2010-11-01 Thread Cyrille Vincey
Option 2 looks nice. Than you Ikai. From: "Ikai Lan (Google)" Reply-To: Date: Mon, 1 Nov 2010 15:28:54 -0700 To: Subject: Re: [appengine-java] Mapreduce, mutationPool, and child entities You've got a few options here: 1. Use named keys. You can then use KeyFactory and Key

Re: [appengine-java] Mapreduce, mutationPool, and child entities

2010-11-01 Thread Ikai Lan (Google)
You've got a few options here: 1. Use named keys. You can then use KeyFactory and KeyFactory.Builder to create an entire Key hierarchy. 2. Use KeyRange to generate a range of IDs you can use, and use this as the key of the parent entity http://code.google.com/appengine/docs/java/javadoc/com/google

[appengine-java] Mapreduce, mutationPool, and child entities

2010-11-01 Thread Cyrille Vincey
I am trying to figure out how to put 2 parent/child entities into the mutationPool, inside a MapReduce job. Here is my issue : in my understanding, as the mutationPool is asynchronous , I cannot expect to get the parent entity key back from the mutationPool.put() method. Or can I ? According to yo