Subject | Re: Foreign Key on 2 or more columns |
---|---|
Author | emb_blaster |
Post date | 2009-09-23T19:20:28Z |
--- In firebird-support@yahoogroups.com, "svanderclock" <svanderclock@...> wrote:
if it is the second, then I think you shoul accept sugestion below. (put all in one table and use a archived column).
but if is the second, just remove the FK from the third table (but leave the index)...
but, may I misunderstood something?
SY
>still not very clear...
> hmm, sorry my explanation was not clear
>
> I have 2 tablethe FK is where? in contact and Contact_archive? or in another table that references Contact or Contact_archive?
>
> Contact
> Contact_archive
>
> where i put in contact_archive all the contact that are "archived".
>
> Because table contact we do some intensive select order by query and i don't want that the archived contact slow downs the process (because with them the table contact will be very very big)
>
if it is the second, then I think you shoul accept sugestion below. (put all in one table and use a archived column).
but if is the second, just remove the FK from the third table (but leave the index)...
but, may I misunderstood something?
SY