Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.