{"action":"opened","number":798,"pull_request":{"url":"https://api.github.com/repos/facebook/rocksdb/pulls/798","id":49178761,"html_url":"https://github.com/facebook/rocksdb/pull/798","diff_url":"https://github.com/facebook/rocksdb/pull/798.diff","patch_url":"https://github.com/facebook/rocksdb/pull/798.patch","issue_url":"https://api.github.com/repos/facebook/rocksdb/issues/798","number":798,"state":"open","locked":false,"title":"Implement smart buffer management.","user":{"login":"yuslepukhin","id":11303988,"avatar_url":"https://avatars.githubusercontent.com/u/11303988?v=3","gravatar_id":"","url":"https://api.github.com/users/yuslepukhin","html_url":"https://github.com/yuslepukhin","followers_url":"https://api.github.com/users/yuslepukhin/followers","following_url":"https://api.github.com/users/yuslepukhin/following{/other_user}","gists_url":"https://api.github.com/users/yuslepukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/yuslepukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuslepukhin/subscriptions","organizations_url":"https://api.github.com/users/yuslepukhin/orgs","repos_url":"https://api.github.com/users/yuslepukhin/repos","events_url":"https://api.github.com/users/yuslepukhin/events{/privacy}","received_events_url":"https://api.github.com/users/yuslepukhin/received_events","type":"User","site_admin":false},"body":"  introduce a new DBOption random_access_max_buffer_size to limit\r\n  the size of the random access buffer used for unbuffered access.\r\n  Implement read ahead buffering when enabled.\r\n  To that effect propagate compaction_readahead_size and the new option\r\n  to the env options to make it available for the implementation.\r\n  Add Hint() override so SetupForCompaction() call would call Hint()\r\n  readahead can now be setup from both Hint() and EnableReadAhead()\r\n  Add new option random_access_max_buffer_size support\r\n  db_bench, options_helper to make it string parsable\r\n  and the unit test.","created_at":"2015-10-29T18:13:28Z","updated_at":"2015-10-29T18:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/rocksdb/pulls/798/commits","review_comments_url":"https://api.github.com/repos/facebook/rocksdb/pulls/798/comments","review_comment_url":"https://api.github.com/repos/facebook/rocksdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/rocksdb/issues/798/comments","statuses_url":"https://api.github.com/repos/facebook/rocksdb/statuses/6fbc4f9f3e48ff18b381d9ec22dc3dcd58cb8bf0","head":{"label":"yuslepukhin:readahead_buffermanagement","ref":"readahead_buffermanagement","sha":"6fbc4f9f3e48ff18b381d9ec22dc3dcd58cb8bf0","user":{"login":"yuslepukhin","id":11303988,"avatar_url":"https://avatars.githubusercontent.com/u/11303988?v=3","gravatar_id":"","url":"https://api.github.com/users/yuslepukhin","html_url":"https://github.com/yuslepukhin","followers_url":"https://api.github.com/users/yuslepukhin/followers","following_url":"https://api.github.com/users/yuslepukhin/following{/other_user}","gists_url":"https://api.github.com/users/yuslepukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/yuslepukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuslepukhin/subscriptions","organizations_url":"https://api.github.com/users/yuslepukhin/orgs","repos_url":"https://api.github.com/users/yuslepukhin/repos","events_url":"https://api.github.com/users/yuslepukhin/events{/privacy}","received_events_url":"https://api.github.com/users/yuslepukhin/received_events","type":"User","site_admin":false},"repo":{"id":44776420,"name":"rocksdb","full_name":"yuslepukhin/rocksdb","owner":{"login":"yuslepukhin","id":11303988,"avatar_url":"https://avatars.githubusercontent.com/u/11303988?v=3","gravatar_id":"","url":"https://api.github.com/users/yuslepukhin","html_url":"https://github.com/yuslepukhin","followers_url":"https://api.github.com/users/yuslepukhin/followers","following_url":"https://api.github.com/users/yuslepukhin/following{/other_user}","gists_url":"https://api.github.com/users/yuslepukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/yuslepukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuslepukhin/subscriptions","organizations_url":"https://api.github.com/users/yuslepukhin/orgs","repos_url":"https://api.github.com/users/yuslepukhin/repos","events_url":"https://api.github.com/users/yuslepukhin/events{/privacy}","received_events_url":"https://api.github.com/users/yuslepukhin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuslepukhin/rocksdb","description":"A library that provides an embeddable, persistent key-value store for fast storage.","fork":true,"url":"https://api.github.com/repos/yuslepukhin/rocksdb","forks_url":"https://api.github.com/repos/yuslepukhin/rocksdb/forks","keys_url":"https://api.github.com/repos/yuslepukhin/rocksdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuslepukhin/rocksdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuslepukhin/rocksdb/teams","hooks_url":"https://api.github.com/repos/yuslepukhin/rocksdb/hooks","issue_events_url":"https://api.github.com/repos/yuslepukhin/rocksdb/issues/events{/number}","events_url":"https://api.github.com/repos/yuslepukhin/rocksdb/events","assignees_url":"https://api.github.com/repos/yuslepukhin/rocksdb/assignees{/user}","branches_url":"https://api.github.com/repos/yuslepukhin/rocksdb/branches{/branch}","tags_url":"https://api.github.com/repos/yuslepukhin/rocksdb/tags","blobs_url":"https://api.github.com/repos/yuslepukhin/rocksdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuslepukhin/rocksdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuslepukhin/rocksdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuslepukhin/rocksdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuslepukhin/rocksdb/statuses/{sha}","languages_url":"https://api.github.com/repos/yuslepukhin/rocksdb/languages","stargazers_url":"https://api.github.com/repos/yuslepukhin/rocksdb/stargazers","contributors_url":"https://api.github.com/repos/yuslepukhin/rocksdb/contributors","subscribers_url":"https://api.github.com/repos/yuslepukhin/rocksdb/subscribers","subscription_url":"https://api.github.com/repos/yuslepukhin/rocksdb/subscription","commits_url":"https://api.github.com/repos/yuslepukhin/rocksdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuslepukhin/rocksdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuslepukhin/rocksdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuslepukhin/rocksdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuslepukhin/rocksdb/contents/{+path}","compare_url":"https://api.github.com/repos/yuslepukhin/rocksdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuslepukhin/rocksdb/merges","archive_url":"https://api.github.com/repos/yuslepukhin/rocksdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuslepukhin/rocksdb/downloads","issues_url":"https://api.github.com/repos/yuslepukhin/rocksdb/issues{/number}","pulls_url":"https://api.github.com/repos/yuslepukhin/rocksdb/pulls{/number}","milestones_url":"https://api.github.com/repos/yuslepukhin/rocksdb/milestones{/number}","notifications_url":"https://api.github.com/repos/yuslepukhin/rocksdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuslepukhin/rocksdb/labels{/name}","releases_url":"https://api.github.com/repos/yuslepukhin/rocksdb/releases{/id}","created_at":"2015-10-22T22:16:34Z","updated_at":"2015-10-22T22:16:41Z","pushed_at":"2015-10-29T18:11:02Z","git_url":"git://github.com/yuslepukhin/rocksdb.git","ssh_url":"git@github.com:yuslepukhin/rocksdb.git","clone_url":"https://github.com/yuslepukhin/rocksdb.git","svn_url":"https://github.com/yuslepukhin/rocksdb","homepage":"http://rocksdb.org","size":55955,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"c97667d9f11519519dd26ba8240a6054b1d200a3","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":6934395,"name":"rocksdb","full_name":"facebook/rocksdb","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/rocksdb","description":"A library that provides an embeddable, persistent key-value store for fast storage.","fork":false,"url":"https://api.github.com/repos/facebook/rocksdb","forks_url":"https://api.github.com/repos/facebook/rocksdb/forks","keys_url":"https://api.github.com/repos/facebook/rocksdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/rocksdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/rocksdb/teams","hooks_url":"https://api.github.com/repos/facebook/rocksdb/hooks","issue_events_url":"https://api.github.com/repos/facebook/rocksdb/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/rocksdb/events","assignees_url":"https://api.github.com/repos/facebook/rocksdb/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/rocksdb/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/rocksdb/tags","blobs_url":"https://api.github.com/repos/facebook/rocksdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/rocksdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/rocksdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/rocksdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/rocksdb/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/rocksdb/languages","stargazers_url":"https://api.github.com/repos/facebook/rocksdb/stargazers","contributors_url":"https://api.github.com/repos/facebook/rocksdb/contributors","subscribers_url":"https://api.github.com/repos/facebook/rocksdb/subscribers","subscription_url":"https://api.github.com/repos/facebook/rocksdb/subscription","commits_url":"https://api.github.com/repos/facebook/rocksdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/rocksdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/rocksdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/rocksdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/rocksdb/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/rocksdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/rocksdb/merges","archive_url":"https://api.github.com/repos/facebook/rocksdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/rocksdb/downloads","issues_url":"https://api.github.com/repos/facebook/rocksdb/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/rocksdb/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/rocksdb/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/rocksdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/rocksdb/labels{/name}","releases_url":"https://api.github.com/repos/facebook/rocksdb/releases{/id}","created_at":"2012-11-30T06:16:18Z","updated_at":"2015-10-29T15:57:25Z","pushed_at":"2015-10-29T17:33:20Z","git_url":"git://github.com/facebook/rocksdb.git","ssh_url":"git@github.com:facebook/rocksdb.git","clone_url":"https://github.com/facebook/rocksdb.git","svn_url":"https://github.com/facebook/rocksdb","homepage":"http://rocksdb.org","size":74210,"stargazers_count":4253,"watchers_count":4253,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":823,"mirror_url":null,"open_issues_count":119,"forks":823,"open_issues":119,"watchers":4253,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/rocksdb/pulls/798"},"html":{"href":"https://github.com/facebook/rocksdb/pull/798"},"issue":{"href":"https://api.github.com/repos/facebook/rocksdb/issues/798"},"comments":{"href":"https://api.github.com/repos/facebook/rocksdb/issues/798/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/rocksdb/pulls/798/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/rocksdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/rocksdb/pulls/798/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/rocksdb/statuses/6fbc4f9f3e48ff18b381d9ec22dc3dcd58cb8bf0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":170,"deletions":33,"changed_files":9}}