surinder-insonix / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

pm.getObjectsById(objectIds) doesn't perform batch get #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Intend to batch-get some set of JDO-backed objects from the datastore.
The objects are not all of the same type. 
2. Secure a collection of said objects' keys and thereby objectIds.
3. call pm.getObjectsById(objectIdCollection);
4. Observe that the objects were fetched one-by-one rather than in batch.

What is the expected output? What do you see instead?
I expected the objects to be fetched in batch.

There is no other way for me to batch-get the objects without either
resorting to the low-level API or constructing 1 batch-get per type of
object represented in the collection of objectIds.

Original issue reported on code.google.com by ehb...@gmail.com on 15 Mar 2010 at 6:51

GoogleCodeExporter commented 8 years ago

Original comment by googleco...@yahoo.co.uk on 29 Jul 2011 at 7:34

GoogleCodeExporter commented 8 years ago
SVN trunk (when used with datanucleus-core-3.0.10 or later, when released) does 
a batch get when calling pm.getObjectsById().

Original comment by googleco...@yahoo.co.uk on 3 Mar 2012 at 4:25