java - Can JPA do batch update | put | write | insert as pm.makePersistentAll() does in GAE/J -


I searched here through several discussions, can anyone give me quick and direct answers?

And if you can not update the batch with JPAs what will happen if I do not use the transaction, and only use the following flow:

  em = Emf.getEntityManager // Make some query / modify some data em.persist (..) // Make some query // modify some data em.persist (..) // Make some queries / modify some data .persist (..) ... em.close ()  

How does it compare batch updates to performance, and compare it to A To commit transactions, to dumpster servers measured by RPC, CPU cycles per request, or to do so. Before each call em.persist (..) em.close () triggers an RPC call on the datastore server?

Thanks for any feedback!


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -