🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #469

Re: Foreign key & User defined Index Difference

#469
From: Quinn Wildman (CodeGear Develope...
Date: Fri, 30 Nov 2007 21:24
12 lines
1799 bytes
Depending on your version of InterBase, foreign keys may have a higher 
selectivity. So, the optimizer may choose to do things differently for 
foreign keys vs user defined indexes.

Monalee Bhandge wrote:
> Hi,
>   I want to ask only the difference between user defined index & the index that created while defining the foreign key.
>   I have two table emp_master & empl_details.The primary key of emp_master is foreign key for emp_details.When I asign foreign key then it automaticaly create index on it.But now I want to remove that trigger, instead I want to create trigger.I externaly create index on that column.
>   So, will it make the difference for retrive the data from tables and how it effects?
> 
> Thanking you,
> Monalee Bhandge.
Technical Details
Message-ID: <47507fad@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <474fc025$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,e8cd02e29a9aa333
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 30 Nov 2007 13:24:59 -0800
From: "Quinn Wildman (CodeGear Developer Support)" <qwildman@nospam.codegear.com>
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: Foreign key & User defined Index Difference
References: <474fc025$1@newsgroups.borland.com>
In-Reply-To: <474fc025$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.100.209
Message-ID: <47507fad@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196457901 10.143.100.209 (30 Nov 2007 13:25:01 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail