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 6084455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:31:25+00:00 2026-05-23T11:31:25+00:00

Need an opinion Do you think its a good idea storing basic audit information

  • 0

Need an opinion

Do you think its a good idea storing basic audit information for all entities in a common database table? I mean Created By, Created On, Modified By, Modified On. The entity table will have the Audit Id & timestamp

Audit information is typically queried during updates to check conflicts and sometimes from business logic associated with the Creator for e.g. owner of the record in a CRM New Lead row.

May be we should never use audit fields as business fields.

I think it will make the inserts slow because of two tables per entity but overall will make the entity classes compact and will make auditing a ON/OFF switch

  • 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-05-23T11:31:26+00:00Added an answer on May 23, 2026 at 11:31 am

    There are basically three options I’m aware of:

    1. Common audit table for all entities as you suggested.
    2. One audit table per entity, having all (or a subset) of that entity’s fields, plus additional information such as the user and timestamp as it relates to the entity being saved at that point in time.
    3. Each entity table can have multiple versions of the same entity. You’d then have a view for each entity table to select out the most recent version of the entity.

    It really depends on what sort of audit data you’re interested in. In many cases, it’s no use knowing who made a change and when if you can’t see what the change actually was because other people have changed the same entity since then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m just working on this interesting thing with ADO.net entities and need your opinion.
I need an opinion and advise from experienced ASP.NET people, what way to go.
.NET developers out there! Need your opinion here! I am now using Visual Assist
I need a real DBA's opinion. Postgres 8.3 takes 200 ms to execute this
Please your opinion on the following code. I need to calculate the diff in
I'm looking for opinion on using Canvas vs. Grid panels in WPF. I need
I think I have what must be a very common problem to solve and
We use Guids as primary keys for entities in the database. Traditionally, we've followed
With MS ramming powershell into all new server products, I'm starting to (reluctantly) think
EDIT Appreciate all the inputs guys. Opinions were very welcome, I think we'll go

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.