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: How to speed up BuildSessionFactory() ?
PostPosted: Fri Jul 20, 2007 4:45 am 
Newbie

Joined: Fri Jul 20, 2007 4:22 am
Posts: 1
Location: Germany
NHibernate version: 1.0.2

Hi all,

we are using NHibernate and it works very fine. But the BuildSessionFactory() reading the mapping files from our 2 assemblies is taking 16 seconds. This is not an issue for our Web applications as it is happening only the first time! But we are now using the same framework for Winforms applications.
So 15 seconds can be a rather long time after the double click on an icon.

I then read the post in this formum regarding

Code:
NHibernate.Cfg.Environment.UseReflectionOptimizer = false;


This boosted performance to 3 seconds. But I can't now overridden properties can't be set anymore when loading inherited objects.

So is there any other way to speed up the initial configuration, e.g. by serialization ? Or is there a way to handle it, so that only the first start on local machine takes the whole time?

Thanks for help,
Dino[/code]


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.