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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:50:38+00:00 2026-06-13T20:50:38+00:00

Basically, the question is: In default MySQL configuration with InnoDB, is insert and update

  • 0

Basically, the question is:

In default MySQL configuration with InnoDB, is insert and update in on transaction faster then the same operation in two separate transactions.

My assumption that it should be faster when you do in transaction but it would be great if somebody can example if it is really faster and why.

I believe the answer depends on workload, so in which cases single transaction should be faster and in which cases two transactions should be faster.

Does it matter which MySQL version is used? Any option influencing this?

  • 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-06-13T20:50:39+00:00Added an answer on June 13, 2026 at 8:50 pm

    For this simple case I would say that it is faster. When the number of actions inside the big transactions are large it might be slower.

    And it also depends on configuration. In 5.5 and older leaving innodb_flush_log_at_trx_commit at it’s default of 1 gives a real penalty on each transaction and doing the insert + update outside a transaction actuallt causes two separate transactions and two separete flushes to log. In 5.6 this is faster.

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

Sidebar

Related Questions

This is basically the same question as Click items in select box, and then
I have basically two questions. How do I locate the default Rprofile which is
So basically, I have two fast questions about kohana urls. 1) With default .htaccess
Basically my question is the exact same one as this: Simple client/server, TCP/IP encrypting
This is a follow-up on this question . I basically have the same question
The question basically drill's down to these two C# 2.0, ASP.NET 2.0 webpages. viewtemplate.aspx
Basically the question is how do I run gpgpu code in a Metro app.
Basically the question could more probably be more accurately asked, how do I simply
Basically the question is, Why are NONE of the changes I've been making in
Basically my question is i have a website which was developed around 3 years

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.