# #59 Optimistic Locking

> Episode of [RailsCasts](https://podistic.com/podcast/railscasts.md) · Published July 18, 2007 · Duration 7:26

- **Listen on Podistic:** https://podistic.com/episode/59-optimistic-locking
- **Video:** http://media.railscasts.com/assets/episodes/videos/059-optimistic-locking.mp4 (video/mp4)

## About this episode

When two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic locking.
