Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / October 2004

Tip: Looking for answers? Try searching our database.

Adding a column - Column oder a concern?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Cobb - 28 Oct 2004 05:20 GMT
I have a table that currently contains 718000 rows. I wish to add a
column to the table. Adding this column anywhere other than the end of
the table requires exporting data, a drop and recreate, then a
re-import of data. Is there any disadvantage to adding this column to
the end of the table. Will this fragment the table. Is a reorg needed?

Thanks,

- CBC
Serge Rielau - 28 Oct 2004 13:10 GMT
Chris,

In reality there is no difference.
In theory (or when running a benchmark where 0.1% are a measure of
success) there are. Tuning the column ordering is not worth your money.

Cheers
Serge
Mark - 28 Oct 2004 15:56 GMT
> I have a table that currently contains 718000 rows. I wish to add a
> column to the table. Adding this column anywhere other than the end of
[quoted text clipped - 5 lines]
>
> - CBC
Generally there is no problem adding a column to the end of a table.
The space is not actually allocated until you insert/udpdate the row,
or do a reorg. It is generally better to do a reorg before doing large
updates to the table with a new column, since the old row will usually
not fit back in the same space as the row before the new data is
added.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.