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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:36:57+00:00 2026-06-07T02:36:57+00:00

I’ve worked on several apps and talked to other developers who have had problems

  • 0

I’ve worked on several apps and talked to other developers who have had problems with several details of data warehousing.

The main issue I’ve seen is regarding Change Data Detection (CDC) in the operational data store. Updates and hard deletes obviously can be hard to detect in the operational data store.

Updates can be handled by inserting triggers on EVERY table that automatically update the updated_at column with the current timestamp. Deletes are harder though – one solution is to put a trigger in that updates an audit table with the id deleted, the table, and a timestamp.

Using triggers seems like the most reasonable way to do change data detection, but another option I’ve seen is to parse the database transaction log files, though that may make it harder to update the operational data store database.

My question is, how do people usually handle this issue? I’ve done a fair bit of research and it really seems like a lot of companies doing data warehousing are rolling their own sub-optimal solutions.

Another solution I’ve seen to avoid problems related to CDC is to simply rebuild the ENTIRE (or the portion related to the source data) data warehouse every once in a while, which will ensure that all the data is current and there is no bug in the code that does CDC on the operational data store.

  • 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-07T02:37:00+00:00Added an answer on June 7, 2026 at 2:37 am

    Here’s the way I typically handle updates and deletes.

    Updates in the Source System

    Some DBMS’s provide a column, which, if added to all the tables, provides the warehouse with a unique identifier that is always increasing. SQL Server has the TIMESTAMP column. Oracle provides the ora_rowscn pseudocolumn, which is good at the block level.

    While I haven’t used it, Postgres has the xmin pseudocolumn, which I believe could be used in a similar fashion. There are some concerns over it but I think for data warehouse change tracking purposes, it may do the trick.

    UPDATE triggers in the source system to update the last modified date are another option. Keep this date at a very high precision to reduce the risk of “missing” records if something is running doing massive updates on the ODS when you do your extract.

    Deletes in the Source System

    As for deleted records, my preferred solution is to ensure that all of the source tables have a primary key (preferably one column, though multiple is doable). I extract the entirety of this column into a stage table daily, then identify the rows that are “missing” from the target table compared to the source, an update a “source deleted” flag or something on the target records. I typically only do this for dimension tables, since fact tables should retain history even if the original transaction is gone.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.