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 3421306
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:05:35+00:00 2026-05-18T06:05:35+00:00

What should be the correct value for innodb-flush-log-at-trx-commit if I want to make the

  • 0

What should be the correct value for innodb-flush-log-at-trx-commit if I want to make the query faster at any cost?
I do not bother about data integrity at this moment. I have set the following in my.cnf

innodb_flush_method=O_DIRECT
innodb-flush-log-at-trx-commit = 2

Is it correct?

  • 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. Editorial Team
    Editorial Team
    2026-05-18T06:05:35+00:00Added an answer on May 18, 2026 at 6:05 am

    innodb-flush-log-at-trx-commit = 0 is slightly faster than 2, but less durable. If you are just reimporting data = 0 is fine, but the savings are not (usually) high enough to toleration the added losses.

    If you want to disable a bunch of features for speed here they are:

    • innodb_doublewrite = 0
    • innodb_checksums = 0
    • innodb_locks_unsafe_for_binlog
    • (session) SET foreign_key_checks = 0
    • log-bin = 0
    • innodb_support_xa = 0

    Not that I don’t recommend any of this. Please be careful with this advice, it is not for production.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE!!! Suggested answer is NOT correct, my mistake. The #container DIV should've had float:left;.
Is it semantically correct to nest definition lists, or should they simply be a
In a Swing app a method should continue only after user enters a correct
Can anyone explain, why this program is returning the correct value for sqrt_min? int
Revised Query.. the [Id] column is unique to all records.. the query should return
I've got the following code: // personCount = 7291; correct value int personCount =
I guess with what I'm going to write I should first clarify, it's not
I want to call [NSString compare:options:range:] and pass no options. What should be the
So I'm having problems not having a params[:id] value in an update action. I
I'm having an issue getting the correct value from my drop down box. Basically

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.