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

  • Home
  • SEARCH
  • 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 7173799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:53:58+00:00 2026-05-28T15:53:58+00:00

What is the most effective way to systematize a way of logging what changes

  • 0

What is the most effective way to systematize a way of logging what changes have been made to which tables. For instance I have about 10-12 tables in my database schema and one table displays records by joining about 7-8 tables. How do I synchronize the changes that were made by various users on same record or on different record.

Approach A: by having a row activator/deactivator flag . set the deactivator flag when a record is updated which will deactivate the row and insert a new record with the activator flag on.

Approach B: Maintain a separate database history tables for every table that will store data wrt to timestamp.

Assumption: Records will be updated frequently. Total no of records expected should be not more than 1000 rows.

Any other approaches that you might want to propose?

  • 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-28T15:54:00+00:00Added an answer on May 28, 2026 at 3:54 pm

    I think the answer lies in the question, “How often do you need to see the history of a particular record and for what reaason?

    If you need this occasionally to research who did what when or for auditing puroposes, the use the audit table approach populated through triggers on each data change. Or use change tracking if it works for you (frankly we don’t find it good enough for auditing). Change tracking can also be used successfully to see if a record has been changed since the last data import for instance. Be aware that change tracking data is not permanent unless you physically copy it to another table.

    If you need to display the whole history frequently, then keep it all in one table with an active flag that is maintained through triggers. Create a view which has only the active records for the developers to use when they only want to see the most current data. If you are doing this to an existing database that previosuly did not store history, then rename the table and name the view the same teh table orginally had so nothing breaks.

    I would also consider using the separate history tables, if I needed the history data for reporting but not rest of the application. For instnce we have this becasue we need to know if the targets the sales reps are talking to are in fact high value targets at the time the contact happened as this calualtion sis part of the how a sales reps performance might be measured. Clearly we need the history but really only once a month or so. So degrading performance daily to keep it in the same table might not be the best solution. This might help keep the reporting time-consuming stuff away from the day-to-day stuff and might in general help performance.

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

Sidebar

Related Questions

Which is the most effective way to sum data in the DataTable by a
What is the most effective way to have scrollbars on a website to a
Question: What would be the most effective way of doing a nested list which
What the most effective way to parse with nltk? I have a big vocabulary
I have a series of li items and need the most effective way to
I have always wondered what the most effective way is of creating String's in
What would be the most effective way to grab the schema + table name
Simply put: What is the most effective way to share / reuse code between
Hey, what's the most effective way to remove beginning and ending slashes from all
I hope I'm not duplicating here :-) I'm wondering what's the most effective way

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.