Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:06:31+00:00 2026-06-05T03:06:31+00:00

Initially, I’m thinking of one table that will handle all the audit logs but

  • 0

Initially, I’m thinking of one table that will handle all the audit logs but in terms of flexibility, like for example in the future do you think, it will make sense to break the table and have each application to have their own audit log table?

Like for example, for reservation, I’ll have one audit table that will track all the changes on the field level, and then I’ll have another audit table for visa application.

My current audit log table design is like this

AuditLogID
Module              
ActivityType
ReferenceNumber 
FieldName
OldValue
NewValue
IPAddress
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:06:33+00:00Added an answer on June 5, 2026 at 3:06 am

    The pattern you are describing seems to be along the lines of Entity Attribute Value (EAV), which is one row per field.

    Assuming that all field changes to all tables in all of your modules will result in a new audit row, there are some potential issues with this approach

    • the audit table will get very huge
    • the number of writes will be large and frequent and could negatively impact performance – correct clustering of this audit table will be important
    • in order to view / compare rows, you will need to reassemble fields back into rows in order to be meaningful to a user

    You are also potentially missing out on 2 important attributes to audit, viz UserId and TimeStamp of the change

    There is probably some normalisation you can do to your audit tables, e.g. Have a ‘one per row’ audit table and a ‘one per field’ audit table.
    e.g. IP Address, ReferenceNumber, Activity Type, UserId and TimeStamp are probably a constant for all updated fields in the same row which were changed by the single ‘action’ and belong at once per row.

    There are also other alternatives

    • One Audit table per Live table, which is generally a clone of the fields, plus a TimeStamp field and a new Primary Key (or just leave it as a heap)
    • SQL Change Data Capture
      SQL Server 2008 change data capture vs triggers in audit trail
    • If all changes occur from the same App, you can use a Document Store
      (e.g. store the rows as Xml, Blobs or other Metadata), keeping
      serialized versions of the change in a single row, and possibly just
      exposing a couple of indexable fields (Column Name, Date) for query
      purposes.
    • If you choose the Document store approach, you might also
      choose not to store audit data in a RDBMS at all. NoSQL stores like
      RavenDB or MongoDB are good at storing high volumes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

initially I had a window with lots of bindings like this one: <TextBox Grid.Row=3
Initially i have a table view with only one add button. when user press
Initially I was under the impression that it uses the table row slideup/down animations
Initially there are only th in in the table.My question is that from jquery
Initially I am navigating from one to another XAML class like this (for example,
Initially I thought this was going to work, but now I understand it won't
Initially I deployed packages on SQL server but since my machine is not having
Initially I had a method in our DL that would take in the object
I initially thought that 64 bit instructions would not work on OS-X 10.5. I
I initially asked this on Superuser, but somebody advised me to repost here. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.