Locking database edit by key name
- by Will Glass
I need to prevent simultaneous edits to a database field. Users are executing a push operation on a structured data field, so I want to sequence the operations, not simply ignore one edit and take the second.
Essentially I want to do
synchronized(key name)
{
push value onto the database field
}
and set up the synchronized item so that only…