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

  • SEARCH
  • Home
  • 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

Ask A Question

Stats

  • Questions 104k
  • Answers 104k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try: #if defined(_WIN32) || defined(_WIN64) // do stuff #endif The… May 11, 2026 at 8:39 pm
  • Editorial Team
    Editorial Team added an answer I will not discuss whether you can build your own… May 11, 2026 at 8:39 pm
  • Editorial Team
    Editorial Team added an answer Not sure about #1 but it might work... I would… May 11, 2026 at 8:39 pm

Related Questions

There is a need from a customer to log every data change to a
I am working on a product that runs an SQL server which allows some
I have stored procedures in SQL Server T-SQL that are called from .NET within
I've worked in shops where I've implemented Exception Handling into the event log, and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.