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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:20:09+00:00 2026-06-14T11:20:09+00:00

I have a question about concurrency control and when to worry about that. I’ve

  • 0

I have a question about concurrency control and when to worry about that. I’ve created a PHP/MySQL site (InnoDB). I know about how to avoid transaction issues but then there is the concurrency control.

My site is an E-commerce which holds user inserted goods, so as an example. When a user inserts a new item to the site, the DB creates an productId as primary key ( auto-incremented by the DB ) and stores the other data about that product that is submitted through a form. I’m using prepared statements.

Do i have to worry about if two or more users are doing this at exactly the same time? Is there any chance that submitting two or more items at the same time will mess up the data of the different rows?

To be able to insert products the user has to be logged in using sessions if that matters to the question.

Thanks in advance, Markus.

  • 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-14T11:20:10+00:00Added an answer on June 14, 2026 at 11:20 am

    Unless they’re writing to the exact same row, I don’t see why you’d have any concurrency issues. Even if they were writing to the same row, InnoDB has row-level locking in place, which means that a row will be locked until a user has finished writing to it, leaving subsequent users to “wait it out” until the lock has been released. In regards to the possibility of “conflicting INSERT queries”: If you’re inserting new data into a table that is using an auto-incrementing primary key, you’re guaranteed to get a unique ID each time, which means that concurrency should never be an issue on INSERT.

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

Sidebar

Related Questions

I am studying Java concurrency right now. I have a question about synchronized and
I have a question to ask about Java Concurrency. I'm practicing Java Threading. What
I have a question about concurrency in upstream/downstream handlers of a channel pipe. I
I have a question about C concurrency programming. In the pthread library, the prototype
I have a fairly specific question about concurrent programming in C. I have done
I have question about parsing in Html helper : I have sth like: @foreach
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass
I have question about XSLT1.0. The task is to write out in HTML all
I have question about normalization. Suppose I have an applications dealing with songs. First
I have question about interpreting strings as packed binary data in C++. In python,

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.