-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create OLAP cube function on top of activity schema #86
Comments
@matthieu-carmeille interesting! I have no problem including this in the package. Feel free to open a PR! Curious about your vision for the use case - Is the idea here that you'll pre-compute metric calculations for every single combination of time and dimensions, so that segmentation in BI tools effectively just looking up a set of rows, rather than recalculating all metrics every time a user wants to change their dimensions of interest? Or am I misunderstanding the use case? |
yes exactly, idea would be to have all possible combinations of dimensions precomputed in one data model to have everything in one place and improve performance in the BI tool. |
Makes sense! Admittedly I think slow in-app loading should be solved by the BI tools that experience the slow loading (since they're the ones writing and issuing the queries), but as we know that doesn't always happen on the timeline we practitioners want, so mass precomputing seems like a reasonable workaround. Feel free to take a stab at this - let me know if I can be helpful at all! |
That's correct. However what would make this use case different from the macros in this package to create datasets on top of the activity schema ? |
I don't think it is! I think it's just a wrapper on top of the existing functionality - at least how I'd approach it. Namely, build one aql time spine statement for each pre-computed time aggregation (day, week, month, etc) with the appropriate dimensions and metrics added, then union them all together. This should all be possible with jinja. |
Hi @bcodell ,
Inspired by this article, it would be great to create a macro on top of activity schema to build OLAP cubes, wdyt ?
Started to write the macro (cf attached), we would need to adapt it to activity schema.
generate_olap_model.txt
How to use the macro:
The text was updated successfully, but these errors were encountered: