[ https://issues.apache.org/jira/browse/OPENJPA-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475238 ]
Craig Russell commented on OPENJPA-160: --------------------------------------- I think it's great that profiling EntityManager creation resulted in this analysis. I'd like to know why Broker creation is so expensive. Most of the static information should be kept in the Broker factory so configuring and looking up stuff should be "free". The only thing that is needed for a new Broker should be the various identity maps and such that bind the EM to the persistence context. These artifacts should be just as cheap to create as to clear. Until we understand why it's so expensive to create Brokers, I'd like to stay away from pools. From my experience, trying to dynamically manage pools is extremely difficult, and making the user responsible for tuning the pools is a disaster waiting to happen. > Reuse BrokerImpl objects > ------------------------ > > Key: OPENJPA-160 > URL: https://issues.apache.org/jira/browse/OPENJPA-160 > Project: OpenJPA > Issue Type: Sub-task > Reporter: Michael Dick > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.