Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: IOT seek vs index seek - index sizes and widths.
On 24.04.2007 11:47, phancey wrote:
> On 24 Apr, 10:27, sybrandb <sybra..._at_gmail.com> wrote:
>> On Apr 24, 10:52 am, phancey <d..._at_2bytes.co.uk> wrote: >> >>> If I only want to select 2 columns out of 5 for example, and those 2 >>> columns are the primary key on an IOT, is it possible or even >>> worthwhile to index them separately from the IOT? The IOT would be a >>> much wider index and therefore require more memory? If the 2 columns >>> are likely to be in physical order anyway, wouldn't the normal index >>> perform better? >>> In SQL Server I have been able to create a clustered index and a >>> normal index on the same 2 columns. The optimiser chooses the normal >>> index when selecting just those 2 columns. But it seems Oracle won't >>> let me define the same 2 columns(in the same order) twice. >>> Phil >> It is not worthwhile as the optimizer would automagically select the >> index and the index only. >> Why would the IOT be a much wider index? >> Why would a 'normal' index perform better. >> Why would you need to create 2 indexes on identical columns? If that >> can be done in sqlserver, sqlserver is an even bigger piece of crap >> than I already thought.
There are no clustered indexes in Oracle. While I am not sure about the "Oracle will always be better than SQL Server" piece I certainly strongly agree with Sybrand that you need to tune both databases completely independently. It is a plain waste of time to figure out an optimal setup on one product and try to "copy" that to the other - regardless of direction.
robert Received on Tue Apr 24 2007 - 05:52:54 CDT
![]() |
![]() |