-
Notifications
You must be signed in to change notification settings - Fork 80
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
Use materialized views for all charts #419
Comments
@jace creating the mviews need a call to |
Migrations, and always make a copy of the model in the migration. |
I went through that link and the method to declare views in sqlalchemy all of last week. But it seems sqlalchemy doesn't really work anymore like it's described there. Even when I got it to create the mviews, it'll still try to create a table with the given columns from the query. From my previous experience, I think it might be enough to -
|
This won't work because we don't use Alembic for new deployments. See point 6 in hasgeek/coaster#100. |
Have you tried using |
I know about abstract, I haven't checked if abstract models can be queried just like regular models in sqlalchemy or if there is any limitation internally. |
In the spirit of #418, materialized views can be used wherever we have expensive queries that collate data for a day, week or month. These include:
The text was updated successfully, but these errors were encountered: