aviv zikel
12/20/2023, 6:47 AMset time_bucket = elementary.get_time_bucket(time_bucket, model_graph_node)
time bucket is calculated as following(taken from elementary git, more in their repo), but my fact tables (incremental model) are clustered by column called date
whilst my timestamp_column is not among the clustered columns in my tables.
Won’t it be super heavy query to check for example even 1 month back?
I want the seasonality to be hour_of_week (at the moment).
I thought about adding in the `where_expression`a filter which will take the date according to scanned timestamp..
what would you suggest to do?Samuel Garfield
12/20/2023, 7:11 PMSamuel Garfield
12/20/2023, 7:14 PMdate
• non-clustered timestamp_column
• hour_of_week seasonality
• optimal query performance
because there's no way to avoid grouping by the un-clustered timestamp_column to get hour_of_week seasonality
filtering in the where_expression is recommended; you could also consider adding an index (or whatever your data warehouse affords) on timestamp_columnaviv zikel
12/20/2023, 7:19 PMSamuel Garfield
12/21/2023, 12:39 AMA less sensitive seasonality might cause a better performance isn’t it?Probably but hard to say without knowing more about your stack and data
I also tried to minimize the detection period to one day but it didn’t help 🙂Unfortunately this won't necessarily work. See these 2 feature requests for some more context on why 1 2
aviv zikel
12/21/2023, 6:35 AMaviv zikel
12/21/2023, 1:05 PMaviv zikel
12/21/2023, 7:46 PMsum , right?Samuel Garfield
01/05/2024, 9:11 PMSamuel Garfield
01/05/2024, 9:12 PMSamuel Garfield
01/05/2024, 9:12 PMsum column anomaly on the second column in the pre-aggregated tableSamuel Garfield
01/05/2024, 9:12 PMaviv zikel
01/06/2024, 12:51 PMaviv zikel
01/06/2024, 12:51 PM