What optimization could I use if the EJB container is the only point of write access to the database?

DWQA QuestionsCategory: QuestionsWhat optimization could I use if the EJB container is the only point of write access to the database?
Editor Staff asked 2 months ago

What optimization could I use if the EJB container is the only point of write access to the database?

1 Answers
Editor Staff answered 2 months ago

You could activate the “Commit Option A” that is the container caches entity bean state between transactions. This option assumes that the container has exclusive access to the persistent store and therefore it doesn’t need to synchronize the in-memory bean state from the persistent store at the beginning of each transaction.