thomshouse/escher — Issue #40: Reduce metadata/content queries.
Author: thomshouse
Created: 2012-01-24 06:13:19+00:00
State: open
Labels: Planned

Models used to only check for metadata (or content) if `$m->_metadata`/`$m->_content` were TRUE or non-empty arrays. This was changed to accommodate metadata that might exist for disabled plugins. However, I think this can be handled more efficiently without risk of losing "disabled" data:

* Only check for metadata/content if `$m->_metadata`/`$m->_content` are non-empty.
* Append "living" schema with metadata/content fieldnames. This will prevent content from being deleted on next save.
* Only set metadata/content if `$m->_metadata`/`$m->_content` are non-empty.