Subject | Re: [firebird-support] Custom RI was Re: Possible bug with CHECK constraint |
---|---|
Author | Helen Borrie |
Post date | 2004-10-04T01:38:32Z |
At 10:55 AM 4/10/2004 +1000, Geoff Worboys wrote:
RI triggers are supposed to dig you out of, DO NOT MAKE A SINGLE-COLUMN
INDEX on despachado.idbomba. Instead, do
create index cfk_idbomba on despachado(idbomba, pk)
where the column pk is (hopefully) the single-column primary key column of
despachado.
./heLen
>As for the speed issue; you may need to ensure you haveHowever, to avoid falling straight back into the same hole that your custom
>appropriate indexes on your data. EXISTS is the correct
>and fastest way to do what you appear to want.
RI triggers are supposed to dig you out of, DO NOT MAKE A SINGLE-COLUMN
INDEX on despachado.idbomba. Instead, do
create index cfk_idbomba on despachado(idbomba, pk)
where the column pk is (hopefully) the single-column primary key column of
despachado.
./heLen