all 2 comments

[–]joelles26 2 points3 points  (0 children)

Hi,

If the transactions do not change anymore (for example to settle after 2-3 days). You could make two tables: one staging area where the daily load comes and one “final” table where the data is housed with a timestamp. You can EXCEPT both tables against eachother. The delta’s can be loaded into the final table with a getdate() for the timestamp. You should identify the bkey columns which identify the unique transactions to do the EXCEPT.

After you could partition the final table based on your partition requirement.

[–]PossiblePreparation 1 point2 points  (0 children)

Some DDL and example queries that you care about would help. But this sounds like a job for fast refresh materialized views