-->
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.  [ 3 posts ] 
Author Message
 Post subject: nHibernate performanc testing?
PostPosted: Mon Dec 19, 2005 1:37 am 
Newbie

Joined: Wed Dec 07, 2005 1:33 am
Posts: 7
I am using nHibernate in my current project, not too big, around 20 tables I love it. It is so great that my development work is becoming boring now. :D
But I do have a question here. Our DBA always claims that dynamic sql is bad. nhibernate probably only work for smaoll project, otherwise there will have performance issues. He can not check index in where clause, and so on. I think probably most of you have already faced before. Could anybody give me any hint how to make them believe the values? How can I do a performance testing, comparing with ADO.NET+stored procedure. How many overhead it will be? I am not a database guy, not very clear how dynamic sql or stored procedures work internal database (SQL Server 2000). But I guess the most overhead will come from reflection.

Very appreciate for any suggestion.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 7:56 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
May be this topic has some useful information for you: NHibernate performance.

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 12:02 pm 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
Well, there are a lot of debates about dynamic SQL vs Stored Procedures - google for them. The issue here is that your DBA has a narrow perspective. The gain in using an ORM comes from the time saved in development (which is paid later with a slight runtime overhead). Anyway computer time is very cheap compared with the programmer time! If your DBA is worried about security, if you use parameterized queries, NH should use parameters as well (I think the NH team will aprove me). Also there are some posts which explain how to use stored procedures with NH.

HTH,
Radu


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