Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jtompkins
Creator
Creator

State-oriented fact tables

Is there a reason that state-oriented fact tables get truncated and rebuilt each time a data mart process is run, regardless of whether any updates have taken place? For example if I run a DWH task that  updates one row in a hub table, and then go run the data mart, every state-oriented fact table will get completely rebuilt even though the last DWH update did not touch any of the associated hub/satellites. If I have one record that I want propagated to the data mart, it seems extremely wasteful to have millions of records truncated/inserted that haven't changed since the last run.

Labels (2)
1 Solution

Accepted Solutions
Nanda_Ravindra
Support
Support

@jtompkins with state-oriented (from_date, to_date) fact tables, they get huge in volume. so the idea behind is that its best to insert them than scanning the table for updates. 

Also the State-Oriented Facts have to account not only  for changes in the fact records, but there could be potential back-dating scenarios with denormalization which completely changes the timeline of the data

Hope this helps!

Thanks,

Nanda

View solution in original post

1 Reply
Nanda_Ravindra
Support
Support

@jtompkins with state-oriented (from_date, to_date) fact tables, they get huge in volume. so the idea behind is that its best to insert them than scanning the table for updates. 

Also the State-Oriented Facts have to account not only  for changes in the fact records, but there could be potential back-dating scenarios with denormalization which completely changes the timeline of the data

Hope this helps!

Thanks,

Nanda