Skip to main content
1-Visitor
June 15, 2017
Solved

A way of accounting for concurrency when accessing a data-table?!

  • June 15, 2017
  • 1 reply
  • 916 views

In my application multiple users can access/make records in the same data-table around the same time. The challenge here is to increment the unique id correctly which is just a simple order number [primary key]. I've solved the problem by using a Boolean flag property which changes state whenever the data-table is in use. With Boolean flag in new state, another user would have to wait a millisecond and receive a notification after a failed attempt to create a record. Would that be considered a normal practice? Thanks.

Best answer by PaiChung

some flag to track if a record is in edit I indeed standard practice.

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
June 15, 2017

some flag to track if a record is in edit I indeed standard practice.