Changes between Initial Version and Version 1 of Ticket #30375
- Timestamp:
- Apr 16, 2019, 4:20:31 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30375
- Property Version 1.11 → 2.2
-
Ticket #30375 – Description
initial v1 13 13 which can be easily done by overriding BaseOperation.for_update_sql in Postgres DatabaseOperation 14 14 15 15 For 1.11 16 16 {{{ 17 17 def for_update_sql(self, nowait=False, skip_locked=False): … … 27 27 }}} 28 28 29 For 2.2 30 31 {{{ 32 def for_update_sql(self, nowait=False, skip_locked=False, of=()): 33 """ 34 Return the FOR UPDATE SQL clause to lock rows for an update operation. 35 """ 36 return 'FOR NO KEY UPDATE%s%s%s' % ( 37 ' OF %s' % ', '.join(of) if of else '', 38 ' NOWAIT' if nowait else '', 39 ' SKIP LOCKED' if skip_locked else '', 40 ) 41 }}} 42 43 29 44 Not doing so causes lock contention in our use case.