[appengine-java] Re: Bulk writes to datastore

2009-09-15 Thread Richard
Hi Larry I am wondering about writing a Servlet that would form/multi-part upload large files and cache them in memcache then use the cron API to trickle persist them into the DS over time ... I've been thinking about using something like this as well. I think you could likely cache the

[appengine-java] Re: Bulk writes to datastore

2009-09-12 Thread P64
Exactly! I was hoping this update ( http://code.google.com/p/datanucleus-appengine/issues/detail?id=7 ) would seriously improve bulk inserts. As it seems in practice you can now do roughly 2-3 times as many inserts in the same ammount of real and CPU time. However this is still poor compared

[appengine-java] Re: Bulk writes to datastore

2009-09-12 Thread Larry Cable
I am wondering about writing a Servlet that would form/multi-part upload large files and cache them in memcache then use the cron API to trickle persist them into the DS over time ... could maybe even get adventurous and put a filesystem-like API over the cache ... lemme know if anyone would be

[appengine-java] Re: Bulk writes to datastore

2009-09-11 Thread Larry Cable
I tried doing a bulk load with the JDO makePersistentAll(..) call yesterday ... by default what I did was created a List of size 2048, filled it to capacity and then called makePersistentAll() ... I got an IllegalArgumentException out of that call stating that you could only persist at most 500

[appengine-java] Re: Bulk writes to datastore

2009-09-11 Thread Larry Cable
So now, I am hitting Datastore timeouts and Request timeouts ... I really really think you guys need to add a mechanism that allows developers to simply do bulk uploads of data into their GAE applications (from Java thank you). :) On Sep 11, 9:06 am, Larry Cable larry.ca...@gmail.com wrote: I

[appengine-java] Re: Bulk writes to datastore

2009-09-08 Thread Jason (Google)
Yes. If you need to be able to rollback in case one or more entities don't get written, you'll need to use transactions. If you use transactions, your entities must belong to the same entity group or else an exception will be thrown. You'll get better performance if you do this outside of a

[appengine-java] Re: Bulk writes to datastore

2009-09-05 Thread Vince Bonfanti
Your two quick notes seem to be contradictory. In order to use transactions, don't all of the entities have to be in the same entity group? Vince On Fri, Sep 4, 2009 at 8:24 PM, Jason (Google)apija...@google.com wrote: Batch puts are supported, yes, and as of yesterday's release, calling

[appengine-java] Re: Bulk writes to datastore

2009-09-04 Thread Jason (Google)
Batch puts are supported, yes, and as of yesterday's release, calling makePersistentAll (JDO) and the equivalent JPA call will take advantage of this support (previously, you had to use the low-level API). Two quick notes: 1) All of the entities that you're persisting should be in separate