How We Work on Queries at GitHub
samlambert.com
samlambert.com
Sam's chatops tools opens this process up to a lot more people that otherwise wouldn't be comfortable logging on to servers to access the slow query logs (assuming that they even have access to the servers). It's a great way for app developers to level up their sql skills from other more experienced coworkers.
The impact of slow queries determines their priority. How frequent are the slow queries? Is it from a background job, or does it cause exceptions on important pages or API calls?
I don't know if this process is streets ahead of what other companies have, but it's made a hugely positive impact on our MySQL infrastructure.
I am working on some query linting as a side project.
https://github.com/github https://github.com/libgit2 https://github.com/boxen
When it's easy to extract, well-documented, and has a clear team of maintainers, we try to open source. Sometimes it's difficult to nail one or all of those bullet points, though.
[Edit: Just noticed poster is author. Hi Sam and welcome to HN :)]
It would be cool to be able to pass the script a query and have it clone all the tables.
Thought I'd let you know you have an error in your json - section.name (http://i.imgur.com/CoHol0f.png)
;]
atleast :
4,151,457 repos
2,480,478 users
popular repos :twbs/bootstrap 40662
jquery/jquery 34633
joyent/node 34522
mbostock/d3 30247
h5bp/html5-boilerplate 28736
popular users:
visionmedia 10712
torvalds 9984
paulirish 5885
schacon 4431
mattt 4053
pjhyett 3732
src code: https://github.com/akuchlous/githublike
However, GitHub user IDs are/always used to be sequential, create a new account and see what its user ID is. It's around 8.6 million at the moment.
Via BigQuery:
SELECT COUNT(DISTINCT actor) FROM [githubarchive:github.timeline];I don't know if you're at liberty to discuss further, but how has it been scaling a giant Rails app? Have there been any pushes to break it up into smaller components? Ie. fast moving stuff stays Rails, core infra moves to something statically typed?
We try to stick to ruby/rails since so many people are comfortable in that environment. We try to balance the desire to break pieces out with the fact that it lowers the number of devs qualified to work on it.