|
|
|
|
|
|
| Author |
Message |
Sachindra Kumar Meshram v *nix forums Guru Wannabe
Joined: 12 May 2005
Posts: 227
|
Posted: Wed Feb 23, 2005 11:32 am Post subject:
Re: Archiving data on very large tables
|
|
|
Just deleting rows periodically is probably not the biggest problem.
Open a cursor on the table and do positioned deletes on that cursor and
issue a commit every xxxx deletes.
The main problem will be to keep the table and indexes organized to free up
unused space.
--
Message posted via http://www.dbmonster.com |
|
| Back to top |
|
 |
Cedric *nix forums beginner
Joined: 21 Feb 2005
Posts: 1
|
Posted: Mon Feb 21, 2005 7:52 am Post subject:
Archiving data on very large tables
|
|
|
We have a table in db2 that has about 40 million rows added to it daily and
want to keep a rolling period of 180 days worth of data on the table. We
want to remove either one day or a few days worth of data in batch, but it
must not cause significant locking on the table.
Would using a MDC on the date field in the table help significantly in
speeding up the deletes or is the only real way to remove the old data to
partition the table into weekly partitions and unload the data from each
partition. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 3:45 am | All times are GMT
|
|
Beijing Olympic | Hackers | WoW Gold | Song Lyrics | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|