Update query on entity base table while there is no change

Created on 12 June 2019, over 5 years ago
Updated 31 January 2023, almost 2 years ago

When an entity is updated, an update query is executed for the base table of the entity even there is no change for that in the base table from SqlContentEntityStorage::doSaveFieldItems()

Update make sense if an entity is revisionable but not for a non-revisionable entity having no change for the base table.

Use case is - I have a custom non-revisionable content entity and bulk updating entities from an API call triggers DB update for base table

🐛 Bug report
Status

Needs work

Version

10.1

Component
Entity 

Last updated about 13 hours ago

Created by

🇮🇳India joshi.rohit100 Delhi, India

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024