Re: all foreign key should have index?



Frank, you have a point in that I did not answer the first question the
OP asked IF FK require indexes, but I did answer the question if the
results of his query were bad, 8-D.

For interested readers -
Where the referencing table is very small and will always be that way
an index to support a FK is often not necessary. Also where the parent
row is never deleted and the FK column is not updated in the parent
then the index may not be necessary.

In general, the more concurrent DML on the parent and the larger the
child table the more usful an index on the FK column becomes as Frank
pointed out.

HTH -- Mark D Powell --

.



Relevant Pages

  • Re: flow chart vlookup if statements
    ... Actually a VLOOKUP might be just the idea but a lot ... incorrect are two paths stemming from the parent into the two children ... The first question is the root hence has no parent or path. ... have a flow chart that asks a yes/no question. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: adding 5% and round off the result
    ... Hi Frank, ... >not sure about your first question about adding up ... >aboiy wrote: ... >> there a way to calculate the contract date base on the ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Disk Drive (d) - Operability
    ... Frank W951w90 wrote: ... I'm not sure if this is a hardware or ... please quote it exactly. ... The First Question Of Troubleshooting: ...
    (microsoft.public.windowsxp.newusers)
  • Re: For Frank Reid (so sorry about the loss of your daughter)
    ... No parent should have to survive a child. ... Words seem futile, but ... you're in my thoughts, Frank. ...
    (alt.support.stop-smoking)
  • Re: switching from linux to freebsd
    ... Yuan, Jue wrote: ... is a good bookmark to have when you accidentially delete a post you ... To be frank, I just don't get what you mean. ... I thought you wanted to know what the first question was, if you had accidentially deleted OP. ...
    (freebsd-questions)