heat/heat
Crag Wolfe 882a640f18 Refactor purge_deleted, operate on batches of stacks
Avoid large sql "in" clauses by operating on smaller batches of stacks
at a time.

To avoid transaction overhead and contention on the resource table,
the first deletions occur outside of a transaction (are
autocommitted). This is OK because the purge is re-rentrant -- we
won't lose any stack_id's to delete if something goes wrong before the
conn.begin() block. That is, we will not orphan any rows if the purge
is run multiple times where an error occurs.

Change-Id: I9edf0558ed54820842193560e323df6501411d1d
2016-11-28 20:13:35 -08:00
..
api Ignore merged env if environment files are specified 2016-11-02 09:16:58 +05:30
cloudinit Validate that python3 is ready for loguserdata 2016-08-26 11:49:30 +00:00
cmd Refactor purge_deleted, operate on batches of stacks 2016-11-28 20:13:35 -08:00
common Merge "Allow policies for resource_types with wildcard" 2016-11-15 06:17:36 +00:00
db Refactor purge_deleted, operate on batches of stacks 2016-11-28 20:13:35 -08:00
engine Merge "Refactor _needs_update() for resource" 2016-11-28 11:01:57 +00:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Moved CORS middleware configuration into oslo-config-generator 2016-03-14 08:19:29 -07:00
locale Imported Translations from Zanata 2016-10-28 08:12:36 +00:00
objects Merge "Don't query raw_template in stacks uselessly" 2016-11-17 01:07:35 +00:00
rpc Merge "Add a modulo core constraint" 2016-10-26 04:12:29 +00:00
scaling Clean imports in code 2016-08-16 12:44:36 +07:00
tests Refactor purge_deleted, operate on batches of stacks 2016-11-28 20:13:35 -08:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00