update facts?
3 posters
Page 1 of 1
update facts?
I have a fact table that tracks retail returns. there is a reason dimension, but often no return reason is supplied initially. the reason dimension has a "not available" record, so when the fact comes in initially, the key is set to this record. now what happens is the customer is contacted and the return reason is determined and selected in the source system. when this new data comes to the warehouse, should i insert a new fact record or update the existing? pros and cons for both, if i update, then the initial response is lost. if i insert a new fact record, then if i aggregate the returns for a given period, the amounts will be incorrect.
topcat- Posts : 19
Join date : 2012-08-09
Re: update facts?
You have three options:
1. Implement a snapshot fact table, meaning rows are updated in place.
2. Implement an accumulating snapshot fact table, meaning rows are inserted and carry an effective and expiration date.
3. Maintain return reason as a separate factless fact table. Easier to load, but more challenging to use in queries.
1. Implement a snapshot fact table, meaning rows are updated in place.
2. Implement an accumulating snapshot fact table, meaning rows are inserted and carry an effective and expiration date.
3. Maintain return reason as a separate factless fact table. Easier to load, but more challenging to use in queries.
Re: update facts?
I would assume most of the business folks are not interested in tracking history for late arriving dimension data, especially for the case of Unknown to Known. If the database can take the performance hit, I would update the fact recrod.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Similar topics
» What to do when facts change? Update the fact table with update and deletes? or use SCD type 2?
» Dimensional update but no new facts
» Multiple Facts or Single Facts and Status Table?
» How best to model Timesheet facts against Sales Order facts
» Inventory facts and production facts
» Dimensional update but no new facts
» Multiple Facts or Single Facts and Status Table?
» How best to model Timesheet facts against Sales Order facts
» Inventory facts and production facts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum