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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:46:01+00:00 2026-05-11T11:46:01+00:00

On a wiki-style website, what can I do to prevent or mitigate write-write conflicts

  • 0

On a wiki-style website, what can I do to prevent or mitigate write-write conflicts while still allowing the site to run quickly and keeping the site easy to use?

The problem I foresee is this:

  1. User A begins editing a file
  2. User B begins editing the file
  3. User A finishes editing the file
  4. User B finishes editing the file, accidentally overwriting all of User A’s edits

Here were some approaches I came up with:

  • Have some sort of check-out / check-in / locking system (although I don’t know how to prevent people from keeping a file checked out ‘too long’, and I don’t want users to be frustrated by not being allowed to make an edit)
  • Have some sort of diff system that shows an other changes made when a user commits their changes and allows some sort of merge (but I’m worried this will hard to create and would make the site ‘too hard’ to use)
  • Notify users of concurrent edits while they are making their changes (some sort of AJAX?)

Any other ways to go at this? Any examples of sites that implement this well?

  • 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. 2026-05-11T11:46:02+00:00Added an answer on May 11, 2026 at 11:46 am

    Remember the version number (or ID) of the last change. Then read the entry before writing it and compare if this version is still the same.

    In case of a conflict inform the user who was trying to write the entry which was changed in the meantime. Support him with a diff.

    Most wikis do it this way. MediaWiki, Usemod, etc.

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

Sidebar

Ask A Question

Stats

  • Questions 133k
  • Answers 133k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer How about: Dim CC As New ClearCase.Application CC.Views(true, myRegionName) It… May 12, 2026 at 6:36 am
  • Editorial Team
    Editorial Team added an answer In PHP you do it like this $string=preg_replace('/\[#\s#\s([0-9]+)\]/', '$1', $string); May 12, 2026 at 6:36 am
  • Editorial Team
    Editorial Team added an answer PHP has an easy way to set how long a… May 12, 2026 at 6:36 am

Related Questions

I have a sketch that I want to put up on my website, and
I need a database where one (or more) fields behave like a wiki. I
I'm working on a fairly big open source RTS game engine ( Spring ).
I'm looking for some kind of text-parser for ASP.NET that can make HTML from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.