Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Magic of varchar2
fitzjarrell_at_cox.net <fitzjarrell_at_cox.net> wrote:
> milind.namjoshi_at_trans.ge.com wrote:
>> What difference does it make : >> >> 1. I define a column as varchar2(500) and store only 10 bytes >> >> 2. I define that column as varchar2(10) . >> >> Any impact on storage / performance ? >> >> My data is static no updates happen once the data is inserted. So no >> row chaining.
I can think of a very good reason for choosing the length of a VARCHAR2 column as small as possible: if you want to create an index on it.
Firstly, according to the documentation, the total size of indexed columns cannot exceed 75% of the database block size 'minus some overhead', and secondly the total size of the index will depend on the length of the indexed columns.
Yours,
Laurenz Albe
Received on Wed Mar 15 2006 - 03:36:12 CST
![]() |
![]() |