Speeding up the creation of an Entity Manager #2112
Unanswered
rubenporras
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we have problems with multiple threads creating entity managers the first time a persistence unit is used, the overall picture is that many threads are waiting for more than one minute on EntityManagerFactoryDelegate.getAbstractSession (we have 64 threads running concurrently), an example of one of such 63 threads:
And then the thread which is blocking:
My first question, is such slowness by the creating of an EntityManager expected under some configuration? To my knowledge the database is performing just fine.
I have been looking at how one could improve that, and by looking at the codebase, I would have tried to set in the persistence unit the following properties:
Does it make sense to do so if we are sure we are running on an Oracle 19 database? Are there any drawbacks other that we disable the automatic configuration? I could not find any documentation that list any drawbacks.
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions