🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Foreign key & User defined Index Difference

#471
From: Quinn Wildman (CodeGear Develope...
Date: Mon, 03 Dec 2007 17:39
26 lines
1734 bytes
The optimizer used to have priority level something like this:

1. keys
2. unique indexes
3. foreign keys
4. indexes with highest selectivity

I belive it is now:

1. keys
2. unique indexes
3. indexes with highest selectivity

Does this explain it?

Bill Todd wrote:
> Quinn Wildman (CodeGear Developer Support) wrote:
> 
>> 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.
> 
> Could you expand on that? How can two identical indexes have different
> selectivity just because one was created automatically as part of a
> foreign key and one was created with CREATE INDEX?
> 
Technical Details
Message-ID: <47543f72$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <474fc025$1@newsgroups.borland.com> <47507fad@newsgroups.borland.com> <475085be$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: Mon, 03 Dec 2007 09:39:58 -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> <47507fad@newsgroups.borland.com> <475085be$1@newsgroups.borland.com>
In-Reply-To: <475085be$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: <47543f72$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1196703602 10.143.100.209 (3 Dec 2007 09:40:02 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail