Jump to content

DB Management


rarebit

Recommended Posts

Hi, so i've got a mysql table (or set of tables) which are used for logging, when it get's full the request starts to lag while it's searched. Therefore periodically I want to back it up. However, say I set a routine which back's it all up to file and then truncates (as so to reset the id) the table, ok. But say whilst this is being done more entries are added and are not backed up. One point is, a certain period of time worth of log's need to be retained for frequency checking.

 

Considerations:

- If an entry is added whilst the table is being truncated, what happens.

- If only use delete entry, then at what point does the id run into trouble.

- Is it crazy to think about using two tables and just rotate them...

 

What's the professional solution?

 

 

Link to comment
https://forums.phpfreaks.com/topic/69557-db-management/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.