Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Relation problem

Re: Relation problem

From: Jan Hidders <hidders_at_REMOVE.THIS.win.tue.nl>
Date: 30 Jan 2001 10:26:15 GMT
Message-ID: <9564s7$eqj$4@news.tue.nl>

Michel wrote:
>
> First clarification:
> The primary problem is performance between addresses and (Organizations OR
> Individuals).
> Individuals and Organizations can have more than 1 address.
> An address can exist by itself.
>
> So, there will be addresses in the address table that are not assigned to
> anybody, but Individuals or Organization do require and Address.

Ah. That certainly clarifies a few things. So the problem is that you have a foreign key that ends in a strict subset of a primary key, and are not happy with the performance of that. Did you check if you can define a separate index on that subset?

-- 
  Jan Hidders
Received on Tue Jan 30 2001 - 04:26:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US