djangosnippets.org: Latest snippets tagged with 'lock'https://djangosnippets.org/tags/lock/2010-05-26T15:58:40.424111-05:00Django Row Level Locking (Prevents race conditions if used correctly)
2010-05-26T15:58:40.424111-05:00sleepycalhttps://djangosnippets.org/snippets/2039/<p><em>WARNING</em> This is <em>extremely</em> slow.
</p>
<p>This snippet allows you to easily prevent <em>most</em> race conditions (if used properly).
</p>
<p>Feel free to extend on top of this as you like, I'd appreciate any comments to cal@simplicitymedialtd.co.uk
</p>
Freely redistributablelock tables decorator
2008-09-04T06:48:55.187884-05:00seandonghttps://djangosnippets.org/snippets/1018/<p>sometimes,you need to lock one or more table to ensure the integrity of data.may be it's help to you.</p>
Freely redistributableLocking tables
2008-06-30T03:49:32.722453-05:00miohtamahttps://djangosnippets.org/snippets/833/<p>Sometimes you need to prevent concurrent access to update/calculate some properties right. Here is (MySQL) specific example to lock one table with new object manager functions.</p>
Freely redistributable