GIDForums  

Go Back   GIDForums > Computer Programming Forums > Java Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Jun-2006, 23:57
bryan523 bryan523 is offline
Junior Member
 
Join Date: Aug 2005
Posts: 32
bryan523 is on a distinguished road

Archiving and Retrieving data using java with mysql


Hi all,

I need your help on doing the archiving system using java with mysql.

I got one table which inside got a lot of data where all this data is the real time data and the data in this table will reach 1000 within 1 hour. The problem is, I dun want to stop the system but need to concernt the decrease of space memory.

what i need to do is archive the data for certain period and delete it after achive, then for the archive data, i need to retrive it back for future use but cannot replace the new data. Hope someone can show me the example code on these.

rgds,
bryan
  #2  
Old 03-Jun-2006, 17:02
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,140
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Archiving and Retrieving data using java with mysql


The archiving part you mentioned in the last part seems confused.

Archive to where? if you copy out the data to another table, like a log table, then the space-saving will not change.

"delete it after archive" -- I assume this means delete from the 1000/hr table what was copied-out <or archived>?

restore -- restore to where? I know it is not to replace the new data, so where will it go?
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 04-Jun-2006, 21:06
bryan523 bryan523 is offline
Junior Member
 
Join Date: Aug 2005
Posts: 32
bryan523 is on a distinguished road

Re: Archiving and Retrieving data using java with mysql


Quote:
Originally Posted by TurboPT
The archiving part you mentioned in the last part seems confused.
Archive to where? if you copy out the data to another table, like a log table, then the space-saving will not change.
This is what i want to ask but i prefere to archive it out as a file and compress it and save it to another data server machine.

Quote:
"delete it after archive" -- I assume this means delete from the 1000/hr table what was copied-out <or archived>?
yup, only the data already archive need to delete.

Quote:
restore -- restore to where? I know it is not to replace the new data, so where will it go?
Any suggestion for this? if i just want to retrieve (not restore) the information from the archive server machine for reporting purpose, ist possible?

rgds,
bryan
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:06.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.