Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 159933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:56:45+00:00 2026-05-11T10:56:45+00:00

I have a logging table that stores the user id, date/time, table name, record

  • 0

I have a logging table that stores the user id, date/time, table name, record id, query type (insert, update, delete, etc), and the full SQL that was run. There are a couple keys on this table, but they don’t need to be updated right away. Typically the table is used to eitehr check for problems (someone made a mistake or there was a system error) or for people to review changes people made. But usually these are not done immediately after a save or they are only done once a week or once a day.

Is turning on DELAY_KEY_WRITE on a table like this would be useful?

Is there anything else that I need to enable on MySQL or within or add to my code? I was reading here that you need to use the startup parameter --myisam-recover. Is this the case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:56:46+00:00Added an answer on May 11, 2026 at 10:56 am

    Possibly, but why? If the entries here are generated by people typing (as it appears) there’s no way you’re going to overload a machine made after 1985 or so, unless you’re using a netbook or your cellphone as the database server.

    If you are tight enough on performance that you are looking at doing things like this, I’d suggest you first do some profiling to see were the problems actually are. If you aren’t worrying about performance, what’s the motivation for looking into DELAY_KEY_WRITE?

    A few more thoughts in response to your comments:

    • 1000s of records a minute is on the order of millions of records a day. How are people going to ‘review’ them?
    • That’s on the order of gigabytes a month. What are your retention policies going to be?
    • Does the log actually need to be indexed, or even stored in a table? Might the system logging facilities be more appropriate?
    • Would logging the information in separate places (a debug log, a review queue, a summary table, etc.) help?
    • It’s unlikely that your system will actually be producing meaningful log information at this rate. How realistic are your load estimates, and how much of this is going to to be redundant / useless?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use SQL Server 2005. I have a simple logging table that my web
For a user logging table I have in a SQL database, I track the
I have a logging table which has three columns. One column is a unique
I have a little logging app (written in wxPython) that receives data from a
We have lots of logging calls in our app. Our logger takes a System.Type
I have a ASP.NET application that we've written our own logging module for. My
I have a database which stores temperature-logging data from various instruments. Data may be
I have a script that appends some rows to a table. One of the
I have a database where the primary user logging into the database has no
I have an application that involves logging the status of up to 8000 devices

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.