Questions Tagged With persistencehttps://answers.axonivy.com/tags/persistence/?type=rss&user=ruffzyquestions tagged <span class="tag">persistence</span>enMon, 14 Nov 2016 20:58:27 -0500Is there a way to use some kind of semaphore in ivy?https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivy<p>I have the situation that I have a database call which gives me a list of elements. Some activities later I write down the modified elements to the db. This is working fine als long as I don't have parallelism. The problem is that the second db operation potentially affects the first db operation. If now two tasks arrive at the first element and read from the database before one task has written the result to the db I get a wrong result. The solution would be to prevent the second task entering the first database read until the first task has written down the result.</p> <p>Do we have some kind of support for such cases?</p>ruffzyMon, 14 Nov 2016 20:58:27 -0500https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivybest-practicepersistencethread