View Single Post
  #4   Spotlight this post!  
Unread 22-06-2010, 15:50
Greg Marra's Avatar Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
no team (The Blue Alliance)
Team Role: RoboCoach
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: [TBA]: TBATV v4 Development Log

Quote:
Originally Posted by Pat Fairbank View Post
I assume you're using Python?

I've run scripts before on App Engine that have created a few hundred objects in one go, and they seem to work okay (in the cloud, at least; it totally kills the local development server whose datastore implementation just can't compete with Bigtable).

I don't have any experience with this, but I'm pretty sure you can pass an optional RPC object argument that can specify a callback, to both the URL fetcher and the datastore, to make them act asynchronously. That way, you should be able to run operations simultaneously.
Yup, we're using Python. I've actually found the cloud to be slower than the local SDK. Maybe there have been improvements in the SDK, but the roundtrip time on the synchronous RPCs in the cloud adds up.

Making datastore tasks asynchronous and non-blocking is very attractive. I'll have to read up on RPCs. Thanks for the pointer!
__________________
Formerly Bobcat Robotics - Team 177 and X-Factor - Team 2124, now The Blue Alliance
Reply With Quote