-->
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.  [ 7 posts ] 
Author Message
 Post subject: VS Studio Debug Slow when using Nhibernate
PostPosted: Tue Aug 09, 2005 11:35 pm 
Newbie

Joined: Tue Aug 09, 2005 10:28 pm
Posts: 10
Location: Florida
Hi,

I dont know if any of you guys is experiencing this situation.:
Whenever I try to debug a project using nhibernate, the dataaccess
layer becomes really slow. Any use of HQL to access data becomes
almost impossible.

When I switch to binary mode, it does not happen.

Does anyone know how to fix this, or even improve the debug performance experience?



Thanks a lot in advance,


Joao,


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 9:09 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Can you try to debug a project accessing a database without NHibernate?

Anyway, add traces to your code to see where your CPU is used (and how much time)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 11:00 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 11:21 am
Posts: 23
Location: erie, pa
What type of database are you using? SQL Server? Does your project have SQL debugging enabled? If so, try disabling that option for a speed improvement. How are you referencing NHibernate? Using the compiled assemblies as downloaded? Or are you compiling NHibernate as part of your project?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 1:52 pm 
I am using SqlServer as a Database, Sql debugging is disabled. I am using Nhibernate as a binary lib.


Top
  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 1:54 pm 
KPixel wrote:
Can you try to debug a project accessing a database without NHibernate?


Anyway, add traces to your code to see where your CPU is used (and how much time)


You got the point, didnt you? The cpu is used by nhibernate. I see that it delays 100 milliseconds between records. I dont know exactly where.


Top
  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 3:00 pm 
Beginner
Beginner

Joined: Wed Oct 05, 2005 5:35 am
Posts: 47
Location: France
Do you have log4net configured?
When I was running without log4net Hibernate didn't slow the debugging at all.
Debugging became VERY slow once I've added log4net.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 11, 2005 2:55 am 
Newbie

Joined: Tue Aug 09, 2005 10:28 pm
Posts: 10
Location: Florida
yep that was the problem. Log4net was slowing down everything.

thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.