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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:39:04+00:00 2026-05-15T23:39:04+00:00

This is just for my own understanding of how concurrency issues work. Let’s say

  • 0

This is just for my own understanding of how concurrency issues work. Let’s say I have an insert statement that runs at the same time as a select query. If the insert statement occurs while the select query is still running, will the select query show a conflict because the number of rows to select has changed?

Or is it that concurrency conflicts can only arise when rows are edited, making insert statements completely harmless (in terms of concurrency conflicts)?

  • 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-15T23:39:04+00:00Added an answer on May 15, 2026 at 11:39 pm

    The wikipeida article for this is pretty decent:

    Concurrency Control

    But basically concurrency issues happen anytime data that a transaction is using is changed by another transaction.

    So Lets say I get the top 100 rows from the database. Someone else makes a change to row 5. Then I try to change row 5 based on my read of it.

    Or an insert case.

    Let’s say that I pull all the children at a school, and want to figure out how many have names starting with A. Then someone adds 10 more children starting with A. That’s a concurrency issue.

    You can have bad things happen from an insert that causes something to happen that you weren’t expecting to be in the database.

    For example:

    John has a balance owed of $1000, he comes online to pay his bill, during that time a transaction happens that causes him to owe another $100 (insert) (total $1100). He pays his $1000 in full which triggers something to set all of his owed balances to 0 (He paid all the ones that we got so we say ahh let’s just set everything to 0). That $100 transaction is now cleared without it actually being paid.

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

Sidebar

Related Questions

I have started learning Objective-C, and I just wanted to verify that my understanding
This is really just for my own use: I would like to be able
Just finished reading this blog post: http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/ In it, the author argues the case
EDIT2: OK this is weird. (I can't answer my own question, so I just
This just saves time. Since I already have a web applciation. I can just
My (albeit still limited as I'm just beginning) understanding of Fragments is that they
I have quite shallow understanding of JUnit and Javassist, i just want to use
So I am trying to make my own version of this gorgeous visualization that
I have used this example to create a database that I copy over on
This is a question for the .NET philosophers: It is my understanding that Microsoft

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.