openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <>
Subject [jira] Commented: (OPENJPA-160) Reuse BrokerImpl objects
Date Fri, 23 Feb 2007 01:34:05 GMT


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

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:
>             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.

View raw message