Subject | Re: [firebird-support] Litte question about indexes |
---|---|
Author | Ann Harrison |
Post date | 2013-05-31T14:14:58Z |
On Fri, May 31, 2013 at 2:50 AM, Olaf Kluge <olaf.kluge@...> wrote:
you've
got a good reason for separating the information. Having two indexes on
ID_TableA in table B will increase the cost of inserts, deletes, and
updates that
affect that column. If you need the foreign key constraint, there's no way
to
avoid a second index.
Good luck,
Ann
IBPhoenix Tech Consultant
column more expensive
>A 1:1 relationship suggests a problem with the data model, but probably
> in a table A there is a primary key, one column named ID. The second table
> B
> uses a single Field named ID_TableA, it references to the Table A (foreign
> key) and this field is the primary key too. (1 to 1 relation). Now I have
> two indexes for one Table-Column. Is this an problem?
>
you've
got a good reason for separating the information. Having two indexes on
ID_TableA in table B will increase the cost of inserts, deletes, and
updates that
affect that column. If you need the foreign key constraint, there's no way
to
avoid a second index.
Good luck,
Ann
IBPhoenix Tech Consultant
column more expensive
>[Non-text portions of this message have been removed]
>
>
> Thank you
>
>
>
> Best regards.
>
>
>
> Olaf
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Yahoo! Groups Links
>
>
>
>