Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Every time we save an entity, we write all its field values to the storage. This may lead to lots of unnecessary writes if only one or few field values have changed.
Proposed resolution
Determine which field values have changed and write only those to the storage.
Remaining tasks
- Validate the proposed solution
- Implement it
- Review patches
User interface changes
None
API changes
None, possibly additions
Comments
Comment #1
dawehnerI was sure that berdir had an issue for that already.
Comment #2
mkalkbrennerWe should leverage the dirty flag that will be introduced by #2428795: Translatable entity 'changed' timestamps are not working at all.
That dirty flag per translation should therefor be turned into a list of dirty properties/fields per translation.
Comment #3
plachThis is the issue Daniel was referring to: #2297817: Do not attempt field storage write when field content did not change.