{"comment":{"url":"https://api.github.com/repos/davecgh/btcd/comments/13833983","html_url":"https://github.com/davecgh/btcd/commit/4ae7b7dc009650590bd2da6c009b6e5a9ffe7ca2#commitcomment-13833983","id":13833983,"user":{"login":"Roasbeef","id":998190,"avatar_url":"https://avatars.githubusercontent.com/u/998190?v=3","gravatar_id":"","url":"https://api.github.com/users/Roasbeef","html_url":"https://github.com/Roasbeef","followers_url":"https://api.github.com/users/Roasbeef/followers","following_url":"https://api.github.com/users/Roasbeef/following{/other_user}","gists_url":"https://api.github.com/users/Roasbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/Roasbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roasbeef/subscriptions","organizations_url":"https://api.github.com/users/Roasbeef/orgs","repos_url":"https://api.github.com/users/Roasbeef/repos","events_url":"https://api.github.com/users/Roasbeef/events{/privacy}","received_events_url":"https://api.github.com/users/Roasbeef/received_events","type":"User","site_admin":false},"position":318,"line":2081,"path":"database2/ffldb/db.go","commit_id":"4ae7b7dc009650590bd2da6c009b6e5a9ffe7ca2","created_at":"2015-10-18T01:52:01Z","updated_at":"2015-10-18T01:52:01Z","body":"I think it would be prudent to allow users to configure the level of db caching (possibly also exposing additional parameters) by altering the  `openDB` function to take a options/configuration struct similar to the way `leveldb` does. \r\n\r\nUsers could then optionally set a custom value for this new config parameter (added to `btcd.conf`): `dbcachesize`. "}}