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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:36:23+00:00 2026-05-27T09:36:23+00:00

we are in the process of moving to a new database system. The database

  • 0

we are in the process of moving to a new database system. The database is of ISAM type and the API does not provide a way to detect if a record has been changed by another user.

Therefore I need to implement this functionality on the client side. I am currently calculating a checksum using the before and after record buffers and comparing the result.

My question is, since there is a chance that the same checksum value can be calculated for two different records, would it be better to have a timestamp field instead?

How is record changed detection normally handled?

Thank you.

  • 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-27T09:36:24+00:00Added an answer on May 27, 2026 at 9:36 am

    Better would be not a timestamp, which is unreliable, but an integer field version, which your client code may use to detect concurrent changes in DB.

    This is called “optimistic locking”, when your transaction doesn’t lock any DB resources, until it’s time to update DB. At this moment it locks needed DB resources (e.g., tables), reads version from DB and checks if it’s has expected value. If yes, this means it’s safe to update database along with version number in DB. If no, this means there was concurrent update and transaction needs to abort.

    Of course, if you would have lot of aborts, it means you would need “Pessimistic locking”, where your app locks any resources for the whole transaction. If your DB driver not support this, you’ll need some other shared lock, like a mutex. This approach decreases throughput in most cases, since concurrent transactions must wait until one transaction frees locked resources.

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

Sidebar

Related Questions

I am in the process of creating a new database and moving old data
I am in the process of moving some sites over to a new windows
I am in the process of moving from VSS to SVN and I'm not
I am in the process of moving my drupal site to a new IIS
I'm in the process of moving from an old laptop to a new one.
We're considering moving to a new architecture with one master Redis database and 10
I am moving onto a new team that has implemented a solution using SOA
We are in the process of moving our web architecture to a new environment.
I am new to Android development and am not sure of the best way
We are in the process of moving over 100 domains over to a new

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.