he7d3r / desafio-engenharia-dados Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently the dashboard uses 6,759 of the 10,000 rows limit allowed in the free "hobby-dev" plan of Heroku Postgres. There seems to be enough space for adding statistics about e.g. the current year.
heroku logs --tail
At some point, there will be a waning like this:
2021-01-20T11:57:35.888640+00:00 app[web.1]: /dashboard/src/routes.py:201: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (
matplotlib.pyplot.figure
) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParamfigure.max_open_warning
).
2021-01-20T11:57:35.888665+00:00 app[web.1]: fig, ax = plt.subplots()
This seems redundant:
desafio-engenharia-dados/dashboard/src/routes.py
Lines 58 to 62 in 5f9e2ea
/data/trades.db
could be a single call to some flask script which implements the current logicE.g. use multi-stage docker builds? Alpine base image?
The original cron job was disabled on 93cb9a8#diff-e4409471758b4d6438b1bf954190cf0659eb6c4b30efafe877d20e4e485c383fR34, when deploying to Heroku.
See https://docs.sqlalchemy.org/en/14/orm/queryguide.html.
BTW: Using string interpolation like this is probably asking for trouble (read: SQL injection?)
desafio-engenharia-dados/dashboard/src/routes.py
Lines 102 to 110 in 48e4aec
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.