-->
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.  [ 2 posts ] 
Author Message
 Post subject: Defining Multiple Indexes for a given column
PostPosted: Mon Nov 13, 2006 1:58 pm 
Newbie

Joined: Mon Nov 13, 2006 1:41 pm
Posts: 1
I am using Hibernate 3.2 with oracle10g and am adding a number of indexes suggested by an ADDM report.

While it is quite easy to define a multiple column index within an hbm file, my problem is that I need to add a multiple column index which includes a column for which there is already a much needed index.

i.e. table FOO has columns A, B, and C. A and B each have an index defined for them. The ADDM report suggests that large performance gains can be had if a multiple column index is added for (A,C).

Thus far I've met the need by defining a database-object in the hbm file which creates and destroys the (A,C) index. However, I am wondering if there is a better approach available.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 13, 2006 2:12 pm 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
As far as I know, the database object is the best choice you can make for your use case.

_________________
Please don't forget to rate


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