Home » RDBMS Server » Performance Tuning » Does Increasing Field Length Decrease Perf?
Does Increasing Field Length Decrease Perf? [message #65914] |
Mon, 31 January 2005 09:53  |
Steve F
Messages: 4 Registered: January 2005
|
Junior Member |
|
|
If i do an alter table, and increase a field's length, does that mean that a portion of the data held in that field will now be written to a 'new' separate area of the disk, thus degrading performance when querying on that field?
We have a pretty tenuous performance situation here at work so I need to be careful about any changes to our db.
Thank you, -Steve
|
|
|
|
|
Re: Does Increasing Field Length Decrease Perf? [message #109902 is a reply to message #109308] |
Tue, 01 March 2005 15:38  |
andrew again
Messages: 2577 Registered: March 2000
|
Senior Member |
|
|
simply analyze your tables (in a non-prod environment) and check the chained row count. If updates are causing a high (> a few %) number of chained rows, you may need to increase PCTFREE for the table.
analyze table abc estimate/compute statistics;
select table_name, pct_free, pct_used, num_rows, chain_cnt, last_analyzed
from user_tables where table_name = 'ABC';
As far as I know, dbms_stats doesn't gather chained row counts - but give it a try - analyze table is an oldish command.
begin
dbms_stats.gather_table_stats('SCOTT', 'ABC');
end;
|
|
|
Goto Forum:
Current Time: Mon Sep 01 01:05:35 CDT 2025
|