Unix Technical Forum

RE: Add Constraint

This is a discussion on RE: Add Constraint within the Informix forums, part of the Database Server Software category; --> The index will not be used by the add constraint unless it is on ONLY the column(s) in the ...


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, 10:06 AM
Bill Dare
 
Posts: n/a
Default RE: Add Constraint


The index will not be used by the add constraint unless it is on ONLY
the column(s) in the constraint. So, if you have a composite index with
your constraint column as the lead column in the index, that index will
not be used for the constraint. The server will create a new index.

Bill


> -----Original Message-----
> From: owner-informix-list@iiug.org [SMTPwner-informix-list@iiug.org]
> On Behalf Of Colin Dawson
> Sent: Wednesday, August 31, 2005 8:51 AM
> To: obnoxio@serendipita.com
> Cc: informix-list@iiug.org
> Subject: Re: Add Constraint
>
> > > It's a Foreign Key constraint

> >
> >It may well have had to build an index, then.

>
> Nope, that isn't the problem. There is an index on the appropriate
> column in
> both tables.
>
> >
> > > Regards
> > >
> > > Colin
> > >
> > > There are 10 types of people in the world, those that understand

> binary
> > > and
> > > those that don't
> > >
> > >
> > >
> > >
> > >
> > >>From: "Obnoxio The Clown" <obnoxio@serendipita.com>
> > >>To: "Colin Dawson" <cjd_1955@hotmail.com>
> > >>CC: informix-list@iiug.org
> > >>Subject: Re: Add Constraint
> > >>Date: Wed, 31 Aug 2005 11:03:08 +0100 (BST)
> > >>
> > >>
> > >>Colin Dawson said:
> > >> >
> > >> > I've just added a constraint on a table both the master and

> detail
> > >>tables
> > >> > have over 100M rows, and it took almost 2 hours, does anyone

> know
> >what
> > >> > exactly happens during an ADD CONSTRAINT.
> > >>
> > >>What kind of constraint?
> > >>
> > >>--
> > >>
> > >>Bye now,
> > >>Obnoxio
> > >>
> > >>"C'est pas parce qu'on n'a rien ` dire qu'il faut fermer sa

> gueule"
> > >> - Coluche
> > >>
> > >>A smile is a gift that is free to the giver and precious to the
> > >> recipient.
> > >>But giving someone the finger is free too, and I find it more

> personal
> > >> and
> > >>sincere.
> > >
> > >

> >
> >
> >--
> >
> >Bye now,
> >Obnoxio
> >
> >"C'est pas parce qu'on n'a rien ` dire qu'il faut fermer sa gueule"
> > - Coluche
> >
> >A smile is a gift that is free to the giver and precious to the

> recipient.
> >But giving someone the finger is free too, and I find it more

> personal and
> >sincere.

> sending to informix-list

sending to informix-list
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 10:01 AM.


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