Skip to content

Can @DynamicUpdate ignore the update time field if only it has changed? #3960

@CanvaChen

Description

@CanvaChen

If only the update timestamp field in an entity has changed while all other fields remain the same, can @DynamicUpdate be configured to exclude the update time field from the generated UPDATE statement? How can I achieve this behavior? I'd like to avoid unnecessary database updates when only the timestamp is "updated" but the actual business data hasn't changed.
Any configuration or best practices to handle this scenario would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions