-->
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: Reflection and Composite keys
PostPosted: Mon May 28, 2007 7:56 am 
Newbie

Joined: Wed Feb 28, 2007 11:52 am
Posts: 4
Hi,

While I was checking the performances of my web application using NHibernate, I wondered why 13% of CPU time was used by RuntimePropertyInfo.GetValue. It appears that this reflection method is used by ComponentType.Equals() (itself used by EntityKey.Equals()).

For what I've read so far, NHibernate actually creates proxies to limit the use of reflection. But in the case of comparing composite ids, NHibernate just uses Reflection and this is a real issue in my case. Anyone has a turnaround for this problem ? Can Nhibernate be tuned in order to use proxies for comparing composite ids as well ?

Thanks !


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.