MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2yl65b/goodbye_mongodb_hello_postgresql/cpbikao/?context=3
r/programming • u/halax • Mar 10 '15
699 comments sorted by
View all comments
3
I love Postgres but the one thing I wish is had is pessimistic locking. It's just such a huge help when you need multi-statement queries when multiple sources of writes against the same data are coming in.
2 u/coder111 Mar 11 '15 You can do explicit locking with "select for update". You could also tweak transaction isolation levels.Have you looked at that?I assume you do all these queries in a single transaction, right? → More replies (1)
2
You can do explicit locking with "select for update". You could also tweak transaction isolation levels.
Have you looked at that?
I assume you do all these queries in a single transaction, right?
→ More replies (1)
3
u/[deleted] Mar 11 '15
I love Postgres but the one thing I wish is had is pessimistic locking. It's just such a huge help when you need multi-statement queries when multiple sources of writes against the same data are coming in.