cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Michail
Gravel

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

1 REPLY 1

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

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

View solution in original post

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.