i think there are already async datastore operations, although not yet
documented. i'd love for you guys to check this out and tell me what
you think

John Patterson uses async datastore calls in his twig-persist, see
here:
http://code.google.com/p/twig-persist/wiki/Using#Parallel_Asynchronous_Commands

if you look at his source code AsyncDatastoreHelper (http://
code.google.com/p/twig-persist/source/browse/src/main/java/com/google/
appengine/api/datastore/AsyncDatastoreHelper.java) he uses an async
call:

        static Future<byte[]> makeAsyncCall(String method,
ProtocolMessage<?> request)
        {
                try
                {
                        return ApiProxy.makeAsyncCall("datastore_v3",
method, request.toByteArray());
                }
                catch (ApiProxy.ApplicationException exception)
                {
                        throw
DatastoreApiHelper.translateError(exception);
                }
        }

The only other code I found using ApiProxy.makeAsyncCall was Max Ross
in
http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/org/datanucleus/store/appengine/query/NoQueryDelegate.java?spec=svn412&r=412

If someone wants to take a stab at it and explain how to use those low-
level calls that would be fantastic!

Cheers!

Tristan

On Mar 20, 11:36 am, Spines <[email protected]> wrote:
> I definitely want async datastore operations.
>
> Looks like there is an issue in the issue tracker now 
> -http://code.google.com/p/googleappengine/issues/detail?id=2817
>
> On Feb 14, 8:02 pm, Ivan Pardo <[email protected]> wrote:
>
>
>
> > async datastore operations would be incredibly useful
>
> > On Jan 23, 1:09 am, John Patterson <[email protected]> wrote:
>
> > > Hi, I know that async url fetch is expected in the next release but I  
> > > was wondering if async datastore operations were expected any time  
> > > soon or on the roadmap at all?
>
> > > Thanks,
>
> > > John

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to