Does Jparepository Saveall maintain the state of persistence in memory?

Asked

Viewed 59 times

0

Jparepository offers us options save and saveAndFlush to persist the objects to the database. Unlike saveAndFlush, the save keeps the persistence state in memory, which ends up generating memory problems in some applications.

As there is no method "saveAllAndFlush" the question is: When using the saveAll, does it also keep the state in memory? It would require a flush or commit call explicitly?

  • Are you using Hibernate as a JPA implementation? And another, maybe you are confusing the application and the operation of the method, the save keeps the persistence state in memory until the commit or the flush be realized only.

  • Yes, I’m using it as a JPA implementation. Yes, I know save keeps up the flush or the commit, but what about saveAll it keeps in memory the same way or it automatically makes the flush?? That’s the question

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.