-->
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: Sybase - Set Force Plan On - How to call it?
PostPosted: Fri May 27, 2005 10:21 am 
Regular
Regular

Joined: Thu Aug 19, 2004 9:28 am
Posts: 63
Hibernate version: 2.1.6, 9.8.2004

Sybase ASE 12.1


Hi,

I need to send a "set force plan on" command prior to sending an HQL-SQL. This is to force ASE to join the table in the order I put them in my SQL.

As it is now my query takes about 30 seconds to execute (that's outside of Hibernate). With the "set force plan on" it takes 0.5 seconds.

My DBAs are telling me I need to issue that command then issue my query.

I tried "session.createSQLQuery" and "session.createQuery" without success.

Any help will be appreciated.


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 10:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
session.connection().prepareStatement()


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 27, 2005 11:09 am 
Regular
Regular

Joined: Thu Aug 19, 2004 9:28 am
Posts: 63
Thanks Gavin. It's working perfectly.


Top
 Profile  
 
 Post subject: Force Plan on HQL
PostPosted: Fri Sep 07, 2007 12:33 pm 
Newbie

Joined: Fri Sep 07, 2007 12:30 pm
Posts: 1
Hi,

This suggestion will not use Hibernate feature of returning the list of Objects that I need. Instead it returns Resultset.

Is there anyway to force plan on HQL queries and get the list of objects ?

Thanks,
Uma


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.