You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It definitely seems like "Gap Locking" applies on MySQL with InnoDB. However, I couldn't find/figure out if it applies to PostgreSQL or not. Do you know?
The text was updated successfully, but these errors were encountered:
Thank you so much! My mentally proposed solution was actually to create a separate table because I had IDs from another service that were unique values. Then I'd essentially create records in that table with the unique ids, and then lock those for update. The upside of that idea is that those "lock rows" could also hold useful logging/introspection values in them in say ArrayFields, etc. and see like the last five spots that have accessed them (or however many), etc.
I may actually use that django-pglocks library that seems great!
I did also confirm Gap Locking doesn't work in PostgreSQL, at least with the settings I was using.
Hi @pirate thanks for putting this on GitHub. I came across it today and it was really helpful.
One thing I've been looking into for a while but haven't definitively gotten the answer to:
https://pirate.github.io/django-concurrency-talk/#sql-gap-locking
It definitely seems like "Gap Locking" applies on MySQL with InnoDB. However, I couldn't find/figure out if it applies to PostgreSQL or not. Do you know?
The text was updated successfully, but these errors were encountered: