Forum Discussion

ObungiNiels's avatar
ObungiNiels
Resolver III
1 year ago
Solved

Pre-filter Fact Tables for reporting

Hi fellow fabricators,    I was asked to provide options for the following scenario. Our customer has some very large fact tables in their gold lakehouse. To maintain performance in their PBI repor...
  • ObungiNiels's avatar
    ObungiNiels
    1 year ago

    Hi there,

     

    quick update on this. 

    We eventually went with the option of creating duplicate tables. We followed the following steps to ensure data integrity: 

    For the warehouse tables we appended a CTAS statement to the stored procedure which handles the transformations to the gold layer. The CTAS select data from the complete gold table and applies the desired filtering. Appending this to the stored procedure ensure that we are selecting the most recent version of the data. 

    We are hoping that the additional storage costs will be justified by faster queries on the filtered fact tables.