-->
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: Hibernate - use index issue
PostPosted: Thu Feb 05, 2015 5:52 am 
Newbie

Joined: Thu Feb 05, 2015 5:24 am
Posts: 1
Hello,

We are facing an issue regarding using indexing on a Hibernate query.
The version of the Hibernate is 4.1.9.Final and we connect with MySQL. The application is deployed on Apache Tomcat 7
We use the Criteria API in order to create the SELECT query on DB.

Our issue is that MySQL does not seem to use the index we have on one of our columns.
So, we would like to force the use of this index by adding on the created query something like:

FROM tableName this_ use index (columnName)


We would be grateful if you could suggest a way to overpass this issue.

Thank you


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.