Re:How We Work on Queries at GitHub
by albertoleal on Friday August 29, 2014 @07:15PM
(#8244970)
Is haystack open sourced anywhere?
[ Parent
| on HN ]
Re:How We Work on Queries at GitHub
by samlambert on Friday August 29, 2014 @07:16PM
(#8244972)
Unfortunately not. It is so closely tied to our applications.
Re:How We Work on Queries at GitHub
by possibilistic on Friday August 29, 2014 @10:03PM
(#8245331)
Thanks for posting this! I like hearing about internal tooling. Is there more on the query tagging? How do you guys bubble query annotations through the stack?
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?
Re:How We Work on Queries at GitHub
by technoweenie on Friday August 29, 2014 @10:58PM
(#8245469)
The query annotations show up as a mysql comment next to the query. I don't know if we have any automatic indexing of the annotations themselves.
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.
Re:How We Work on Queries at GitHub
by samlambert on Saturday August 30, 2014 @04:13AM
(#8245929)
There is a little more info on query comments here: http://samlambert.com/posts/the-power-of-query-comments/
Looks like they're using https://github.com/basecamp/marginalia for the tagging.