heat/heat/objects
Zane Bitter 260b79ed28 Don't always eagerly load the raw_template for a stack
Always loading the raw template in situations where we didn't need it -
e.g. in identify_stack, where we just want the name + id (given one of
them), or when getting the summary stack list - uses up DB bandwidth and
memory unnecessarily.

This partially reverts commit 3ab0ede98c.

* The eager_load option to get_stack() is reinstated, but with the default
  flipped to True. In places where we explicitly do not want to load the
  template, we pass False.
* stack_get_by_name() no longer eagerly loads the template. There were no
  instances of this where we subsequently use the template.
* stack_get_all() acquires an eager_load option, with the default set to
  False. Direct users of objects.stack.Stack.get_all() will not eagerly
  load by default, but users of engine.stack.Stack.load_all() will get the
  template eagerly loaded. This practically always corresponds to what you
  want.

Change-Id: I1f156c25ea26322be5b606a61dd77d80cadd65fc
Related-Bug: #1626675
2016-10-04 08:25:01 -04:00
..
__init__.py Fix some files permissions 2015-08-26 12:11:27 +03:00
base.py Merge "Use a weakref for the data object context" 2016-05-26 05:39:52 +00:00
event.py Use Event versioned object for event_list formatting 2016-06-13 09:39:52 +12:00
fields.py Make JsonField actually do it's work 2016-01-22 21:53:43 +00:00
raw_template.py Always eager load the raw_template for a stack 2016-08-15 22:17:30 +00:00
raw_template_files.py De-duplicate raw_template.files 2016-05-25 15:27:27 -04:00
resource.py A context cache for Resource objects 2016-08-16 01:32:44 +00:00
resource_data.py Be consistent about context first argument in db api 2016-06-22 10:45:04 +12:00
service.py Add OBJ_PROJECT_NAMESPACE for Heat project 2016-01-22 21:53:51 +00:00
snapshot.py Add OBJ_PROJECT_NAMESPACE for Heat project 2016-01-22 21:53:51 +00:00
software_config.py Add OBJ_PROJECT_NAMESPACE for Heat project 2016-01-22 21:53:51 +00:00
software_deployment.py Add OBJ_PROJECT_NAMESPACE for Heat project 2016-01-22 21:53:51 +00:00
stack.py Don't always eagerly load the raw_template for a stack 2016-10-04 08:25:01 -04:00
stack_lock.py Add context to stack lock function arguments 2016-06-22 10:45:04 +12:00
stack_tag.py Don't query stack tags twice 2016-02-15 05:53:17 +01:00
sync_point.py Add OBJ_PROJECT_NAMESPACE for Heat project 2016-01-22 21:53:51 +00:00
user_creds.py Be consistent about context first argument in db api 2016-06-22 10:45:04 +12:00
watch_data.py Do not populate unused stack and watch rule objects 2016-07-11 09:56:29 +12:00
watch_rule.py Do not populate unused stack and watch rule objects 2016-07-11 09:56:29 +12:00