{"action":"opened","number":289,"pull_request":{"url":"https://api.github.com/repos/chain/chain/pulls/289","id":95117321,"html_url":"https://github.com/chain/chain/pull/289","diff_url":"https://github.com/chain/chain/pull/289.diff","patch_url":"https://github.com/chain/chain/pull/289.patch","issue_url":"https://api.github.com/repos/chain/chain/issues/289","number":289,"state":"open","locked":false,"title":"core/asset: use singleflight for lookups","user":{"login":"jbowens","id":867352,"avatar_url":"https://avatars.githubusercontent.com/u/867352?v=3","gravatar_id":"","url":"https://api.github.com/users/jbowens","html_url":"https://github.com/jbowens","followers_url":"https://api.github.com/users/jbowens/followers","following_url":"https://api.github.com/users/jbowens/following{/other_user}","gists_url":"https://api.github.com/users/jbowens/gists{/gist_id}","starred_url":"https://api.github.com/users/jbowens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbowens/subscriptions","organizations_url":"https://api.github.com/users/jbowens/orgs","repos_url":"https://api.github.com/users/jbowens/repos","events_url":"https://api.github.com/users/jbowens/events{/privacy}","received_events_url":"https://api.github.com/users/jbowens/received_events","type":"User","site_admin":false},"body":"Use singleflight for asset lookups and bump the size of the asset\r\nand account caches. In one 500,000 transaction benchmark, there were\r\n~600,000 asset lookups. This reduces it to ~50,000 asset lookups.\r\n\r\nAlso, now we have less contention for DB connections and can reduce our\r\nmax connections.","created_at":"2016-11-24T04:53:58Z","updated_at":"2016-11-24T04:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chain/chain/pulls/289/commits","review_comments_url":"https://api.github.com/repos/chain/chain/pulls/289/comments","review_comment_url":"https://api.github.com/repos/chain/chain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chain/chain/issues/289/comments","statuses_url":"https://api.github.com/repos/chain/chain/statuses/66247d5217fb028c8ccfe66950c2e05dab285f4c","head":{"label":"chain:bump-cache","ref":"bump-cache","sha":"66247d5217fb028c8ccfe66950c2e05dab285f4c","user":{"login":"chain","id":412728,"avatar_url":"https://avatars.githubusercontent.com/u/412728?v=3","gravatar_id":"","url":"https://api.github.com/users/chain","html_url":"https://github.com/chain","followers_url":"https://api.github.com/users/chain/followers","following_url":"https://api.github.com/users/chain/following{/other_user}","gists_url":"https://api.github.com/users/chain/gists{/gist_id}","starred_url":"https://api.github.com/users/chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chain/subscriptions","organizations_url":"https://api.github.com/users/chain/orgs","repos_url":"https://api.github.com/users/chain/repos","events_url":"https://api.github.com/users/chain/events{/privacy}","received_events_url":"https://api.github.com/users/chain/received_events","type":"Organization","site_admin":false},"repo":{"id":71740230,"name":"chain","full_name":"chain/chain","owner":{"login":"chain","id":412728,"avatar_url":"https://avatars.githubusercontent.com/u/412728?v=3","gravatar_id":"","url":"https://api.github.com/users/chain","html_url":"https://github.com/chain","followers_url":"https://api.github.com/users/chain/followers","following_url":"https://api.github.com/users/chain/following{/other_user}","gists_url":"https://api.github.com/users/chain/gists{/gist_id}","starred_url":"https://api.github.com/users/chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chain/subscriptions","organizations_url":"https://api.github.com/users/chain/orgs","repos_url":"https://api.github.com/users/chain/repos","events_url":"https://api.github.com/users/chain/events{/privacy}","received_events_url":"https://api.github.com/users/chain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chain/chain","description":"Chain Core Developer Edition","fork":false,"url":"https://api.github.com/repos/chain/chain","forks_url":"https://api.github.com/repos/chain/chain/forks","keys_url":"https://api.github.com/repos/chain/chain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chain/chain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chain/chain/teams","hooks_url":"https://api.github.com/repos/chain/chain/hooks","issue_events_url":"https://api.github.com/repos/chain/chain/issues/events{/number}","events_url":"https://api.github.com/repos/chain/chain/events","assignees_url":"https://api.github.com/repos/chain/chain/assignees{/user}","branches_url":"https://api.github.com/repos/chain/chain/branches{/branch}","tags_url":"https://api.github.com/repos/chain/chain/tags","blobs_url":"https://api.github.com/repos/chain/chain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chain/chain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chain/chain/git/refs{/sha}","trees_url":"https://api.github.com/repos/chain/chain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chain/chain/statuses/{sha}","languages_url":"https://api.github.com/repos/chain/chain/languages","stargazers_url":"https://api.github.com/repos/chain/chain/stargazers","contributors_url":"https://api.github.com/repos/chain/chain/contributors","subscribers_url":"https://api.github.com/repos/chain/chain/subscribers","subscription_url":"https://api.github.com/repos/chain/chain/subscription","commits_url":"https://api.github.com/repos/chain/chain/commits{/sha}","git_commits_url":"https://api.github.com/repos/chain/chain/git/commits{/sha}","comments_url":"https://api.github.com/repos/chain/chain/comments{/number}","issue_comment_url":"https://api.github.com/repos/chain/chain/issues/comments{/number}","contents_url":"https://api.github.com/repos/chain/chain/contents/{+path}","compare_url":"https://api.github.com/repos/chain/chain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chain/chain/merges","archive_url":"https://api.github.com/repos/chain/chain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chain/chain/downloads","issues_url":"https://api.github.com/repos/chain/chain/issues{/number}","pulls_url":"https://api.github.com/repos/chain/chain/pulls{/number}","milestones_url":"https://api.github.com/repos/chain/chain/milestones{/number}","notifications_url":"https://api.github.com/repos/chain/chain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chain/chain/labels{/name}","releases_url":"https://api.github.com/repos/chain/chain/releases{/id}","deployments_url":"https://api.github.com/repos/chain/chain/deployments","created_at":"2016-10-24T01:12:26Z","updated_at":"2016-11-24T03:44:32Z","pushed_at":"2016-11-24T04:53:11Z","git_url":"git://github.com/chain/chain.git","ssh_url":"git@github.com:chain/chain.git","clone_url":"https://github.com/chain/chain.git","svn_url":"https://github.com/chain/chain","homepage":"https://chain.com","size":101533,"stargazers_count":631,"watchers_count":631,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":17,"forks":78,"open_issues":17,"watchers":631,"default_branch":"main"}},"base":{"label":"chain:main","ref":"main","sha":"ed4d1fb62bf955bd3c6eecd7e0eb2671bd46c5e4","user":{"login":"chain","id":412728,"avatar_url":"https://avatars.githubusercontent.com/u/412728?v=3","gravatar_id":"","url":"https://api.github.com/users/chain","html_url":"https://github.com/chain","followers_url":"https://api.github.com/users/chain/followers","following_url":"https://api.github.com/users/chain/following{/other_user}","gists_url":"https://api.github.com/users/chain/gists{/gist_id}","starred_url":"https://api.github.com/users/chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chain/subscriptions","organizations_url":"https://api.github.com/users/chain/orgs","repos_url":"https://api.github.com/users/chain/repos","events_url":"https://api.github.com/users/chain/events{/privacy}","received_events_url":"https://api.github.com/users/chain/received_events","type":"Organization","site_admin":false},"repo":{"id":71740230,"name":"chain","full_name":"chain/chain","owner":{"login":"chain","id":412728,"avatar_url":"https://avatars.githubusercontent.com/u/412728?v=3","gravatar_id":"","url":"https://api.github.com/users/chain","html_url":"https://github.com/chain","followers_url":"https://api.github.com/users/chain/followers","following_url":"https://api.github.com/users/chain/following{/other_user}","gists_url":"https://api.github.com/users/chain/gists{/gist_id}","starred_url":"https://api.github.com/users/chain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chain/subscriptions","organizations_url":"https://api.github.com/users/chain/orgs","repos_url":"https://api.github.com/users/chain/repos","events_url":"https://api.github.com/users/chain/events{/privacy}","received_events_url":"https://api.github.com/users/chain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chain/chain","description":"Chain Core Developer Edition","fork":false,"url":"https://api.github.com/repos/chain/chain","forks_url":"https://api.github.com/repos/chain/chain/forks","keys_url":"https://api.github.com/repos/chain/chain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chain/chain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chain/chain/teams","hooks_url":"https://api.github.com/repos/chain/chain/hooks","issue_events_url":"https://api.github.com/repos/chain/chain/issues/events{/number}","events_url":"https://api.github.com/repos/chain/chain/events","assignees_url":"https://api.github.com/repos/chain/chain/assignees{/user}","branches_url":"https://api.github.com/repos/chain/chain/branches{/branch}","tags_url":"https://api.github.com/repos/chain/chain/tags","blobs_url":"https://api.github.com/repos/chain/chain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chain/chain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chain/chain/git/refs{/sha}","trees_url":"https://api.github.com/repos/chain/chain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chain/chain/statuses/{sha}","languages_url":"https://api.github.com/repos/chain/chain/languages","stargazers_url":"https://api.github.com/repos/chain/chain/stargazers","contributors_url":"https://api.github.com/repos/chain/chain/contributors","subscribers_url":"https://api.github.com/repos/chain/chain/subscribers","subscription_url":"https://api.github.com/repos/chain/chain/subscription","commits_url":"https://api.github.com/repos/chain/chain/commits{/sha}","git_commits_url":"https://api.github.com/repos/chain/chain/git/commits{/sha}","comments_url":"https://api.github.com/repos/chain/chain/comments{/number}","issue_comment_url":"https://api.github.com/repos/chain/chain/issues/comments{/number}","contents_url":"https://api.github.com/repos/chain/chain/contents/{+path}","compare_url":"https://api.github.com/repos/chain/chain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chain/chain/merges","archive_url":"https://api.github.com/repos/chain/chain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chain/chain/downloads","issues_url":"https://api.github.com/repos/chain/chain/issues{/number}","pulls_url":"https://api.github.com/repos/chain/chain/pulls{/number}","milestones_url":"https://api.github.com/repos/chain/chain/milestones{/number}","notifications_url":"https://api.github.com/repos/chain/chain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chain/chain/labels{/name}","releases_url":"https://api.github.com/repos/chain/chain/releases{/id}","deployments_url":"https://api.github.com/repos/chain/chain/deployments","created_at":"2016-10-24T01:12:26Z","updated_at":"2016-11-24T03:44:32Z","pushed_at":"2016-11-24T04:53:11Z","git_url":"git://github.com/chain/chain.git","ssh_url":"git@github.com:chain/chain.git","clone_url":"https://github.com/chain/chain.git","svn_url":"https://github.com/chain/chain","homepage":"https://chain.com","size":101533,"stargazers_count":631,"watchers_count":631,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":17,"forks":78,"open_issues":17,"watchers":631,"default_branch":"main"}},"_links":{"self":{"href":"https://api.github.com/repos/chain/chain/pulls/289"},"html":{"href":"https://github.com/chain/chain/pull/289"},"issue":{"href":"https://api.github.com/repos/chain/chain/issues/289"},"comments":{"href":"https://api.github.com/repos/chain/chain/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/chain/chain/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/chain/chain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chain/chain/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/chain/chain/statuses/66247d5217fb028c8ccfe66950c2e05dab285f4c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":8,"changed_files":3}}
{"actor":{"display_login":"jbowens"}}