-->
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: random column aliases are generated for identical queries
PostPosted: Mon Apr 25, 2011 9:58 pm 
Newbie

Joined: Mon Apr 25, 2011 9:43 pm
Posts: 1
We are using NHibernate within Web Services hosted by IIS.
We are facing a problem with NHibernate generating different column aliases for identical queries executed by different sessions. It is similar to one faced by Hibernate community - see http://opensource.atlassian.com/project ... e/HHH-2448.
Our queries use parameters and are identical - we actually tested this issue by emulating load testing using the same query - most aliases were different.

This is a problem on its own because Sql Server cannot re-use cached execution plan (it requires the SQL to be identical) and has to recompile each request.
It is, however, compounded when large number of request are coming in - since all queries are considered being different - Sql Server is trying to compile them and is placing wait lock on compilation cache, effectively grinding execution to a halt.

We are looking for a way to either direct NHibernate to use consistent aliases or for a pointers into where in a source code we can change it (we already did some NHibernate changes, so it is acceptable).

Regards,

Sam


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.