[hibernate-dev] Pooled Optimiser Improvements

Scott Marlow smarlow at redhat.com
Wed Dec 16 10:45:50 EST 2015



On 12/16/2015 09:07 AM, Scott Marlow wrote:
> Any arguments against merging the
> https://github.com/scottmarlow/hibernate-orm/commits/pooledOptimizer_5.x
> change to master + 5.x?
>
> I will create a jira for this change.
>
> Any suggestions for how to specify in persistence.xml, that the
> PooledThreadLocalLoOptimizer should be used?  We already have
> "hibernate.id.optimizer.pooled.prefer_lo", which I think can be true or
> false.  Should we add another another similar property?  Or perhaps
> allow "hibernate.id.optimizer.pooled.prefer_lo" to be set to "greedy
> thread local optimizer" or "pooled-lotl"?  Something like:
>
> <property name="hibernate.id.optimizer.pooled.prefer_lo"
> value="pooled-lotl"/>

I pushed a change [1] to allow
"hibernate.id.optimizer.pooled.prefer_lo" to be set to "pooled-lotl".

Should we instead introduce a different property setting for allowing 
"pooled-lotl" to be enabled?

Alternative could be a boolean 
"hibernate.id.optimizer.pooled.prefer_lotl", then we could leave 
"hibernate.id.optimizer.pooled.prefer_lo" as a boolean.

I don't see much difference between either approach.

Scott

[1] https://github.com/scottmarlow/hibernate-orm/commits/pooledOptimizer_5.x


More information about the hibernate-dev mailing list