-->
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.  [ 4 posts ] 
Author Message
 Post subject: NHib/MySql 34 mapped properties - zippy fast - 35 very slow!
PostPosted: Mon Jan 30, 2006 12:54 am 
Newbie

Joined: Sat May 21, 2005 10:16 pm
Posts: 15
Hibernate version:
NHibernate v1.0.2

Name and version of the database you are using:
MySql 5.0

Other:
ASP.NET v1.1 / C#


This is a very strange one - I have an object called a request, and I need to list those requests 10 or 20 per page for reporting purposes.

One day I realized it was taking a long time to return 10 requests (no child objects, about 30 something fields that are all primary types or Enums. I thought "Well that is strange?!" - it would take between 3 and for 4 seconds to load and display 10 requests. The database is basically empty (talking less than 100 rows)...

Well to make a long story short, when my request object has 35 member fields all accessed through their property assessors, it takes 3-4-5 seconds to load 10 requests. If I comment out any one of the properties, it basically runs quicker than 1 second each time.

I am about to go sift through the SQL generated - will post it shortly - just curious if anyone has any insight on this...

Thanks!


Top
 Profile  
 
 Post subject: Nothing major in the sql...
PostPosted: Mon Jan 30, 2006 10:00 am 
Newbie

Joined: Sat May 21, 2005 10:16 pm
Posts: 15
Greetings,

From what I can tell roughly the same amount of SQL is created - is there some issue with the # of params or something before it has to make two trips? Strange....


Top
 Profile  
 
 Post subject: 2 different computers, same result
PostPosted: Mon Jan 30, 2006 4:35 pm 
Newbie

Joined: Sat May 21, 2005 10:16 pm
Posts: 15
Any ideas?

Already tested the code on two seperate computers and I can re-create the same major difference in the the speed on both...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:28 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Can you try a test using plain ADO.NET?


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