Skip to content

Add option to create audit entries only on real data changes #2

Description

@ogobrecht

Hi Connor,

first of all: Thank you very much for this project. I like it.

You have thought about pretty much everything one can think of when needing such a tool - including an option to decide whether to save OLD and NEW values or only the OLD ones, which is the default.

My issue: minimize audit entries further by add only an entry when a real change occurs.

Background: Sometimes there are tables in a model that gets regular updates by a business process. For example, update every day via job all application users with the data from an LDAP server to deactivate inactive ones also in the application. Such processes normally do not check, if an update is necessary or not - they simply update the data. This can lead to many unwanted audit entries.

I can hear you say: Then please do the check in your business logic...

But when I do it there I need to do it possibly multiple times in different places...

So, the questions are:

  • Do you think, it might be useful to add an option (defaults to false, g_only_changed_data?) which adds logic to check if we need an audit entry or not?
  • Will this work with your bulk inserts?

Thank you again for your time on this project.

Best regards
Ottmar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions