Optimistic Concurrency
2020
All databases need to handle the problem of concurrency, or what to do when two users are trying to change the same thing at the same time. The classic approach is to guarantee exclusivity (aka "locking"): before you get in and change anything you first ensure that nobody else is in there, and if they are, you wait until they're done.
An alternative is called optimistic concurrency: you go about making your changes and before finalizing them, you check to see if anyone else was in there while you were. If not, you're good to go. If so, you roll back and start over. Optimistic concurrency works well in situations where conflict is rare (hence the optimism). The idea is that it's worth handling the occasional expensive rollback in exchange for being able to run ahead at full speed the rest of the time.
This is how I like to work with people. It's also one reason why, as a matter of leadership philosophy, I try to minimize approval processes. Approvals are like locking: everything comes to a halt while you are determining the result. It's worth paying that cost when rolling back the decision is cost-prohibitive or impossible — the proverbial one-way door. But the vast majority of the time, rollbacks are tolerable and it's an overall win for the team to run ahead at full speed and just let you know what they're up to.
If you do have to stop and undo some work, it's worth spending the time to understand where the disconnect happened. What context did you fail to provide? This calibrates everyone and makes future rollbacks less likely.
But how does the team know whether to stop and check or not? How do they know whether we can afford a rollback? By definition, you just have to trust them. Surround yourself with people who take that trust seriously and work hard to retain it. Make the assumption that they will do the right thing. Be optimistic!