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

Home -> Community -> Usenet -> c.d.o.misc -> Re: performance: Ordering my varchar2 keys...

Re: performance: Ordering my varchar2 keys...

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Sat, 02 Feb 2002 13:03:28 +0000
Message-ID: <3C5BE3A0.5CA3@yahoo.com>


Andreas Koch wrote:
>
> Hi,
>
> has the character order of textual keys an performance
> hit.
>
> E.g. is there a difference between having
>
> 20020201AAA
> 20020201AAB
> 20020201AAC
> 20020201AAD
> 20020201AAE
>
> as a key column instead of
> AAA20020201
> BAA20020201
> CAA20020201
> DAA20020201
> EAA20020201
>
> Consideration: In the top list, when joining oracle has to
> check 11 bytes to see the keys are different, on the
> bottom list only the first byte.
>
> --
> Andreas
> LINUX users tune their system for stability
> WIN users tune their system for fast booting
> What you prefer is just a matter of taste.

This would suggest that a single column is possible being used for two (or more) attributes, in which case, multiple columns may be preferred.

That aside, there would be a small overhead in scanning further through each string, but I would anticipate this to be dwarfed by the overhead of actually reading the blocks from disk anyway

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Sat Feb 02 2002 - 07:03:28 CST

Original text of this message

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