Skip to content
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

feat: Use parameterized view to fix memory issue #132

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

saraburns1
Copy link
Contributor

Instead of loading all data into a materialized view, this creates a parameterized view that requires an org and course name. It's accessed by
select * from reporting.watched_video_duration(org_filter=['Org1','Org2'], course_name_filter=['course1','course2'])

Ran with 50M row dataset. dbt build had no issues, dashboard load for all orgs & courses took ~3sec

Remove unit test (for now. will do a followup ticket to fix this and other tests we've had to remove)

@Ian2012
Copy link
Contributor

Ian2012 commented Nov 7, 2024

@saraburns1 what changes would be required for this to work on the Superset side?

@saraburns1
Copy link
Contributor Author

@saraburns1 what changes would be required for this to work on the Superset side?

openedx/tutor-contrib-aspects#984

@saraburns1 saraburns1 merged commit b88bde7 into openedx:main Nov 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants