I need to update a few entries with different values and make 1 query per update.
Before I do, I check every initial values to make sure the entry can be updated.
I'm not even sure this could happen but I would like to avoid having those entries changed by another query just after I make my check.
Here is an example of what I want to avoid
1) query1 checks initial value
2) query2 checks initial value
3) query1 applies update
4) query2 applies update
I heard about the isolation level but could not figure out how to use it to avoid the problem, could you help me ?
Thank in advance for your help