Everything You Always Wanted to Know About GitHub (But Were Afraid to Ask)
gh.clickhouse.tech
gh.clickhouse.tech
Here is an example using playground from this paper to calculate pull pull request latency (i.e. how much time user need after fork to submit a PR) - https://tinyurl.com/github-popular-repo-pr-latency
(I wouldn't post here full query, since it is not that compact, but it is not complex)
It does not match with 2012:
>80%+ pull requests come in within 1 day of the fork
But new query calculates statistics only for popular repos.
https://gh-api.clickhouse.tech/play?user=play#c2VsZWN0IGNvdW...
(replace condition on repo_name to your favorite repo)
https://gh-api.clickhouse.tech/play?user=play#U0VMRUNUCiAgIC...
You write: "all the events in all GitHub repositories since 2011" I have a question: When was the data loaded? Will the data in https://gh-api.clickhouse.tech/play be updated?
Data on https://gh-api.clickhouse.tech/play (for interactive queries) is updated every hour as described in the article, but downloadable datasets in .xz are not updated.
select * from system.settings where name IN ('max_memory_usage', 'max_threads'); -- 20GB limit, 40 CPU -- 40 threads, 20GB RAM limit
This is a reasonable default - when setting up the number of threads to full vCPU count, performance of single query will be slightly better but this will affect the max number of concurrent queries badly.