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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:12:42+00:00 2026-06-07T15:12:42+00:00

I am developing a web site of artists profiles and a desktop software to

  • 0

I am developing a web site of artists profiles and a desktop software to manage its database content.
There are many operators that will receive in their in-boxes the same amount of pending records to be revised for approval and publish.
The problem is when two or more operators try to edit the same record. It the database server (remote mysql) will raise an lock error or simply will maintain only the data of the operator that saves it for the last.

What would be the best approach (simpler and more efficient way) to check if any one is already editing the record before grant access to this record to another user, or if the owner of the record is, himself, updating his record again in the website?

The software is still at the lab. But when I delivery it to client I know it will be a problem.

I could create a table to flag each record as “in edit” or “idle”, so I don’t need to alter the structure of the tables (because people are already using them on the site). But I need to be sure that there is a more elegant/faster way to do it.

  • 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-07T15:12:43+00:00Added an answer on June 7, 2026 at 3:12 pm

    There are many system-level approaches you could use to handle the problem. Locking a record for exclusive editing is only one, traditionally chosen by older systems.

    A more modern methodology is to allow both edits to proceed without locking—termed optimistic concurrency control. If there is an overlapping edit, see if it can be resolved automatically—many simultaneous edits are, in fact, not contentious, especially if they edit unrelated parts of the record.

    In the case there is a conflict, it is important that the first edit not be simply lost: the first editor was already signaled of a successful transaction. The onus is to indicate to the second editor that their edit conflicts with an earlier one. Usually the best course is to show him his proposed change as well as the other recent change and let them select what to do: abandon their change, override the previous change (maybe with an indication to the first editor), or manually merge the changes.

    This may not be a big deal. The description of your system suggests users would not be closely synchronized to an edit-worthy event. The random time at which each edit occurs suggests an edit conflicts would be rare. In such a case, maybe your idle/editing indication is more than sufficient.

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

Sidebar

Related Questions

I'm developing a web site and I notice that there is a big difference
I'm developing web site that loads pages dynamically using the .load function. For example:
I'm developing a web site in ASP.NET/C# that is targeted at mobile users. What
I'm developing a Web site that, amongst other things, provides blogging via Metaweblog API.
I'm developing a web site that has a search box as part of the
I'm developing a web site which uses wp-cumulus on its home http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/ it's a
I'm developing a web site with PHP (5.3.5, Ubuntu) and all the content is
I am developing RESTAURANT web site. I have a form that allows restaurant owners
I'm developing a web site which needs to access to a url that need
I am developing a web site that uses a CMS and my actual home

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.