dbTalk Databases Forums  

Archiving Data

comp.databases.mysql comp.databases.mysql


Discuss Archiving Data in the comp.databases.mysql forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bre-x
 
Posts: n/a

Default Archiving Data - 01-10-2008 , 02:43 PM






I would like to archive data that we no longer need on a regular
basics.
We will need to query it maybe once every three or four months.

I would like to move the data from Current_DB.mytable to
History_DB.mytable.

What happen with DB's that we hardly use?
How much resources MySQL assigns it?
Is there a way to make that History_DB dormant?

What other options We have?

Thank you all,

Bre-x


Reply With Quote
  #2  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: Archiving Data - 01-11-2008 , 09:13 AM






On Thu, 10 Jan 2008 11:43:49 -0800 (PST), Bre-x wrote:
Quote:
I would like to archive data that we no longer need on a regular
basics.
We will need to query it maybe once every three or four months.

I would like to move the data from Current_DB.mytable to
History_DB.mytable.

What happen with DB's that we hardly use?
Dy definition, very little.

Quote:
How much resources MySQL assigns it?
The same amount of disk as if it were current and active. Essentially
zero CPU.

Quote:
Is there a way to make that History_DB dormant?
Don't use it. But that won't change the amount of disk it uses.

Quote:
What other options We have?
You could take dumps of the history DB with mysqldump, put the
dumps on a removable medium like a tape or CD, and then drop the DB.

But I'm lazy, and disk is cheap, so unless we're talking about tens or
hundreds of millions of rows in this history DB, I wouldn't bother. It's
easier to buy a big disk once than fuss with restoring, analyzing and
dropping data every few months.

--
45. I will make sure I have a clear understanding of who is responsible for
what in my organization. For example, if my general screws up I will not
draw my weapon, point it at him, say "And here is the price for failure,"
then suddenly turn and kill some random underling. --Evil Overlord List


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.