-->
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: SQL Query via NHibernate takes awfully long
PostPosted: Mon Sep 21, 2009 6:49 am 
Beginner
Beginner

Joined: Thu Sep 17, 2009 8:53 am
Posts: 20
Hello!

I've recently run into a very strange problem.
I've mapped a scalar-valued function like so:

<property name="propertiesName" formula="dbo.get_SomeFloatValue(some_id)"/>

When I do a query which filters by this property, the resulting SQL-select takes awfully long to return (tracked this by measuring the time it takes from handing control to NHibernate to the point where my program regains control).
When I copy/paste the exact same query from my output in VS to Management Studio, I get the results in next to no-time.

As far as I can see, I have no further options to track down the cause of this behaviour, so I have to ask, if I used NHibernate in an unappropriate way by doing this, or if there is anything I can do to improve performance here.


Any help would be much appreciated,
thanks in advance,
have a nice day!

Benjamin


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.