Brian Landau

Brian Landau

2p

2 comments posted · 0 followers · following 0

15 years ago @ Union Station - A Guide to Optimistic ... · 0 replies · +1 points

Thanks glad you liked the post! This is certainly a problem with this basic approach. As I say in my final thoughts, how I recover from conflicts here is not going to be an acceptable solution for every application. It is the most basic and the most "pain free" in my opinion though.

One thing you could consider changing here is in the "stale_record_recovery_action" method render a special "conflict" template that informs the user about the conflicts and asks how they specifically want to deal with each one.

Hopefully this guide just serves as good jumping off point for getting started with optimistic locking.

15 years ago @ Union Station - A Guide to Optimistic ... · 0 replies · +1 points

Yes, absolutely.