-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: overhead in MetaModel.getImplementors
PostPosted: Thu Feb 16, 2017 6:28 am 
Newbie

Joined: Thu Jul 21, 2011 5:43 am
Posts: 4
I've noticed MetamodelImpl.getImplementors [1] method is invoked whenever a criteria is executed with list [2], getImplentors is iterating over all entity persisters available (>600 in my model) to resolve the implementors for a given class name, finally this causes a considerable overhead.

Given the implementors for a concrete class name would always be the same, wouldn't it be possible/make sense to cache them so that they are only computed once?

---
[1] https://github.com/hibernate/hibernate- ... .java#L544
[2] https://github.com/hibernate/hibernate- ... java#L1863


Top
 Profile  
 
 Post subject: Re: overhead in MetaModel.getImplementors
PostPosted: Thu Feb 16, 2017 6:54 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Makes a lot of sense. Please open a Jira issue and add a link to this forum thread, and then I'll forward it further to our team so we can discuss what's the best approach to solving it.


Top
 Profile  
 
 Post subject: Re: overhead in MetaModel.getImplementors
PostPosted: Thu Feb 16, 2017 9:47 am 
Newbie

Joined: Thu Jul 21, 2011 5:43 am
Posts: 4
I've reported it: https://hibernate.atlassian.net/browse/HHH-11495

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.