Solved
Concurrent update data table causes inconsistent data ?
- July 31, 2019
- 1 reply
- 2621 views
Hi,
I want to know how ThingWorx keep data consistent during concurrent update. I asked a similar question days ago and got reply that if set a persistent property then the thread will be locked and will be executed one by one.
However, I tested the approach but still got inconsistent data. Any suggestions ?
I created a reproducible case:
1. Import the attached XML
2. Find the data table ConCurrentDataTable
3. Execute ResetTestData, it will call Async service _Update to simulate concurrent update.
4. Execute ConCurrentUpdate, it will update the properties of entry [Type=station1] with new value.
5. Check the table ConCurrentDataTable, you will find only a few properties get updated .
Regards,
Sean
