Subject | Re: Delete and performance afterwards |
---|---|
Author | ac.hi@switzerland.org |
Post date | 2001-02-03T08:46:28Z |
I wrote
That sounds really like a good solution - even it's a bit time
consuming to realise it.
It would be easier if there is an extended foreign key syntax which
let me choose the index I use. But that's already an old discussion
(IB-Architect: Rebuilding foreign keys system indexes) and is
hopefully one of the extensions of FB 2.0 / IB 7.0.
Thank you for helping me!
Daniel Achermann
> >This is a very interesting point! I have often this kind of indexeskey
> >with a lot of duplicate caused by indexes of a foreign key. For
> >example value stores for code fields: Then I have perhaps 10 code
> >values used for some thousands of recods. Something like
> >
> >Table Data(
> > DataID Numeric (18,0),
> > CodeID Numeric (18,0),
> > Field1 ...
> > Primary Key (DataID),
> > Foreign Key CodeID REFERENCES Code(CodeID));
> >
> >Is it somehow possible to define such a compound index for foreign
> >fields? Or do you know another design solution for such a problem?Helen wrote:
>
> Well, it's a design solution I use.cascades
>
> I never use low-selectivity columns as foreign keys - I code the
> by hand in triggers.order).
> I DO create composite indexes (code + uniqueID usually, in that
That sounds really like a good solution - even it's a bit time
consuming to realise it.
It would be easier if there is an extended foreign key syntax which
let me choose the index I use. But that's already an old discussion
(IB-Architect: Rebuilding foreign keys system indexes) and is
hopefully one of the extensions of FB 2.0 / IB 7.0.
Thank you for helping me!
Daniel Achermann