[Django]-Can this result in a deadlock in django + postgres?

0👍

I assume you are using PostgreSQL, then it is at READ-COMITTED isolation level by default. So yes, within your atomic transaction, for e.g. if you are calling pdb after get() then other code without pdb should wait other one’s transaction to complete when it reaches save(). For your case, no deadlock should occur though.

Leave a comment