Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Have you ever had an issue with conflicts, where multiple instances of the app read, modify and write different things to the same document at the same time?

This problem is what pessimistic (select... for update) or optimistic (using a version column) locking is for. If you don't want any race conditions to sneak into your code, as a rule you should probably be using one or the other regardless of whether or not you use postgresql JSON.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: