Unix Technical Forum

Need suggestion on Foreign Keys

This is a discussion on Need suggestion on Foreign Keys within the Informix forums, part of the Database Server Software category; --> Hi All, I have 2 tables which has 10 Million records and defined Primary Keys. I need best approach ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 11:41 AM
Prashant Shirude
 
Posts: n/a
Default Need suggestion on Foreign Keys

Hi All,

I have 2 tables which has 10 Million records and defined Primary Keys.

I need best approach and which will be the fastest process.

1) Create all required Indexes on both tables and then create Foreign
Keys.
OR
2) Create Foreign Keys and then create all required indexes on it.

Thanks,Prashant
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 11:41 AM
Paul Watson
 
Posts: n/a
Default Re: Need suggestion on Foreign Keys

Personally I go for the former, I like to name indices myself, allows me
to scripts things a lot easier

Paul Watson
Tel: +44 1414161772
Mob: +44 7818003457

GO FURTHER with DB2
GET THERE FASTER with Informix.
Attend the IDUG 2006 North America Conference.
Tampa, Florida, USA. 7-11 May 2006.
Visit http://www.iiug.org/conf for more information.



> -----Original Message-----
> From: Prashant Shirude [mailto:PShirude@manh.com]
> Posted At: Friday, March 03, 2006 10:22 AM
> Posted To: comp.databases.informix
> Conversation: Need suggestion on Foreign Keys
> Subject: Need suggestion on Foreign Keys
>
>
> Hi All,
>
> I have 2 tables which has 10 Million records and defined Primary Keys.
>
> I need best approach and which will be the fastest process.
>
> 1) Create all required Indexes on both tables and then create Foreign
> Keys.
> OR
> 2) Create Foreign Keys and then create all required indexes on it.
>
> Thanks,Prashant


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com