Re: all foreign key should have index?

From: Gene Wirchenko <>
Date: Thu, 02 Feb 2006 09:58:26 -0800
Message-ID: <>

On Thu, 2 Feb 2006 10:23:12 +0000 (UTC), "Murdoc" <> wrote:

>Gene Wirchenko wrote:
>> On Wed, 1 Feb 2006 20:17:11 +0000 (UTC), "Murdoc"


>> > Again, it does come down to the size of the table. A table with a maximum of about 10 rows is
>> > not going to have a large performance gain with an index (or maybe a performance detriment).
>> That is not the point. Why does it have to be an INDEX?
>> You have been assuming that an index is the only way. It is not.
>Then what is the other way? What other mechanism allows efficient searching of a table without a
>full search?

     Why eliminate full table scans? In some cases, it might be faster than the overhead of an index. (If there are very few entries.)

     What about hashing? If you had an environment where there could not be any collisions, it could be much faster than an index.

     Indexes are a good general solution. That does not make them the only one.


Gene Wirchenko Received on Thu Feb 02 2006 - 18:58:26 CET

Original text of this message