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.  [ 1 post ] 
Author Message
 Post subject: performance on boxed subclass access
PostPosted: Wed Oct 21, 2009 4:42 am 
Newbie

Joined: Wed Oct 21, 2009 4:32 am
Posts: 1
hello,

so far my research in (n)hibernate documentation has revealed that the visitor pattern (and therefore any other virtual method call) works because hibernate's proxies box the call to a lazy loaded encapsulated concrete instance. but what's about peformance:

does hibernate load each concrete entity singly or does it force a prefetch for all entities that are part of the currently iterated collection? Assuming a first load scenario where no cached data is available ... or is exactly this fact the only key for success, because caching on session factory level will ensure overall performance for this kind of request?

answering this question would help me a lot because I plan to develop an abstract web content snipplet that could be extended to display different types (i.e. simple html or picture galleries, and so on ...). but it should also be relatively fast.

regards,
joe


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

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.