1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

History: Audit Trail or Version Numbers?

Discussion in 'Databases' started by sarahk, Nov 2, 2021.

  1. #1
    I've got an old project that I have an audit trail of all changes recorded in a "diffs" table with the changed fields serialised (it's old, nowadays I'd use json). It's quick, universal, and easy to generate an HTML table showing what changes were made and when. If the table needs culling I can do it easily based on the date of the change.

    I've got a new project and was need history tracking and was reading an article on medium that recommended all updates be changed to inserts with a column for version. That seems good but has the potential for every table to become huge with no easy way to cull old versions.

    How are other sites managing their history or audits?
     
    sarahk, Nov 2, 2021 IP