-->
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: How to modify Oracle dialect to generate Indexes for FK
PostPosted: Tue Nov 30, 2010 10:06 am 
Newbie

Joined: Sat Apr 24, 2004 2:34 pm
Posts: 5
Hello,

There's a very old issue related to indexes that are not automatically generated for foreign key columns in Oracle, whereas most of the time it is advised to add indexes to FK in an Oracle Db (related to table locks and performance issues)

here : viewtopic.php?t=948998
and here : viewtopic.php?t=924910

AFAIKT the probleme is still there, so I wanted to created my own Oracle dialect to both generate the FKs and the indexes.

I've tried to override the getAddForeignKeyConstraintString of the dialect, but the method expects the "alter table" part of que foreign key creation, and for oracle I'm not able to create an index with an alter table. Anyway, I need to commands : an "alter table" for the FK creation, and a "create index" for the index creation.

Is there an advanced way to modify a dialect an be able to execute two commands for one FK ?

Thanks.


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.