pdgonzalez872 / atp_data_elixir Goto Github PK
View Code? Open in Web Editor NEWElixir project
Elixir project
eprof was failing. Handling it on the Elixir side.
No need to use flow. At least, try this strategy out. Sometimes we get errors. Would be cool to be able to retry if there is an error, specially a :timeout
error
I understand the TODOs now. Could create a task that is run to capture whatever data is there and persist that, instead of waiting to successfully fetch everything.
Deploy to:
I don't like that we are prone and can't recover from timeouts when doing the fetching.
If there is a timeout, move on. Have it not stop the fetching mechanism. Great way to implement OTP.
This code is running one query for the player list and another one for each player to load the earnings, so it's possibly running thousands of queries.
You could call Repo.preload
on the list in order to issue just two queries, one for the list of players and another one for all their earnings.
** (Mix) Could not find migrations directory "/home/travis/build/pdgonzalez872/atp_data_elixir/priv/repo/migrations"
for repo AtpDataElixir.Repo.
This may be because you are in a new project and the
migration directory has not been created yet. Creating an
empty directory at the path above will fix this error.
If you expected existing migrations to be found, please
make sure your repository has been properly configured
and the configured path exists.
The command "mix test" exited with 1.
Features:
Create a EarningsAggregator
that returns a list of tuples, sorted by earnings from the db.
Persist results in local db, have it display some cool charts maybe. (charts.js)
Eventually, deploy this to prod.
Players, Earnings
Player has many Earnings, Earnings belong to Player
The free tier on gigalixir will block past 10,000 rows.
So, instead of persisting the json with the EarningsAggregator
, we can do it in the main task, without saving anything to the db.
create a latest_earnings
table and store the list of tuples as json
Add doctests, try the coverage tool, maybe even use CI here for free
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.