Are you changing multiple entities inside the transaction?  If not
there is no point in the transaction.

One possible way to speed up performance: do your loop and build your
models, but instead of saving to the datastore append them to an
array.  Then do a batch put on the array.  It will be much quicker.


Robert








On Fri, Oct 1, 2010 at 14:50, a9 <[email protected]> wrote:
> Hi all
>
> my application keep throwing
> com.google.appengine.api.datastore.DatastoreTimeoutException
>
> I use a loop. in this loop I start a tranaction,edit data,then commit
> will it better if I start the transaction , then start the loop and
> edit data. commit when all data has changed?
>
> max data change is 30 entites.
>
> thank you all.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" 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?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to