Re: Lock Django DB on 9 of 10 concurrent uwsgi workers - how to?

2015-01-19 Thread Erik Cederstrand
> Den 19/01/2015 kl. 19.24 skrev Andreas Krueger : > > > > What is the most elegant way to > > lock the Django DB while I make a complex transaction (read, decide, write) > > ... during which no other uwsgi worker should have access (or at least no > write access)

Lock Django DB on 9 of 10 concurrent uwsgi workers - how to?

2015-01-19 Thread Andreas Krueger
What is the most elegant way to lock the Django DB while I make a complex transaction (read, decide, write) ... during which no other uwsgi worker should have access (or at least no write access) to that table? I am using Django + db.sqlite3 + uwsgi (+ nginx). Thanks a lot! Andreas