Re: Is it possible to Atomically check limit and Increment/decrement a counter field in multiple tables ?

2017-02-14 Thread sarvi
s together. Do all of this in one constructed query/update operation. Sarvi On Tuesday, February 14, 2017 at 2:08:28 PM UTC-8, Shai Berger wrote: > > Hi Sarvi, > > This list is intended for discussions about developing Django itself; your > question is about writing code using D

Is it possible to Atomically check limit and Increment/decrement a counter field in multiple tables ?

2017-02-14 Thread sarvi
ed/incremented. 2. Check the query translates to exactly one object for each query. i.e. the counts are within limit for each object/table 3. Do a volume_count=F('volume_count')+1 for all those objects/table together. How do I do this? Thanks, Sarvi -- You received