Update query on entity base table while there is no change

Created on 12 June 2019, about 5 years ago
Updated 31 January 2023, over 1 year 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 2 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.

  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    If a valid bug it will need a test case showing the issue

    Thanks!

Production build 0.69.0 2024