-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cumbersome and slow build process #66
Comments
@themightychris how about we pair next week to run through the current build process and identify opportunities to optimize the pipeline ? |
Hey--I have two quick thoughts You can already build the preview site without a full rebuild
Making the builds very fast with warehouse table viewsIf the data for reports is simply one large table per metric, that can be filtered on date and feed, then you'll only need to pull those tables once per metric (and do quick local filters for date and feed rather than SQL queries). 90% of time is spent on http requests, rather than computation. If the metrics were in tables, rather than computed in SQL per month per agency, then it could all probably be pulled in e.g. a github action and the site data regenerated across all months very quickly. |
The build process for this website is problematic from a development perspective:
The whole project could use a major refactor to speed everything up. Ideally, there should be a way to extract data only as needed to build and preview the site locally after making changes in a matter of seconds if not using a live-reload webserver. Furthermore, the choice of using a Jupyter Notebook may not be appropriate since it is merely an intermediary used to eventually generate some images and JSON data which could be generated by other means.
The text was updated successfully, but these errors were encountered: