{"action":"created","issue":{"url":"https://api.github.com/repos/siddontang/xcodis/issues/5","labels_url":"https://api.github.com/repos/siddontang/xcodis/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/siddontang/xcodis/issues/5/comments","events_url":"https://api.github.com/repos/siddontang/xcodis/issues/5/events","html_url":"https://github.com/siddontang/xcodis/issues/5","id":62249936,"number":5,"title":"optimize db connection pool ","user":{"login":"siddontang","id":1080370,"avatar_url":"https://avatars.githubusercontent.com/u/1080370?v=3","gravatar_id":"","url":"https://api.github.com/users/siddontang","html_url":"https://github.com/siddontang","followers_url":"https://api.github.com/users/siddontang/followers","following_url":"https://api.github.com/users/siddontang/following{/other_user}","gists_url":"https://api.github.com/users/siddontang/gists{/gist_id}","starred_url":"https://api.github.com/users/siddontang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddontang/subscriptions","organizations_url":"https://api.github.com/users/siddontang/orgs","repos_url":"https://api.github.com/users/siddontang/repos","events_url":"https://api.github.com/users/siddontang/events{/privacy}","received_events_url":"https://api.github.com/users/siddontang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-17T01:16:17Z","updated_at":"2015-03-18T13:51:09Z","closed_at":null,"body":"Now, xcodis use different connection pool for different dbs, this is may be horrible if we want to support 1024 dbs or more.\r\n\r\nWe may need another better connection pool management. like\r\n\r\n+ every server has a connection pool not db.\r\n+ use a LIFO cache to store a connection for a db. if no associated db connection, we may use random and then do `SELECT`."},"comment":{"url":"https://api.github.com/repos/siddontang/xcodis/issues/comments/82981749","html_url":"https://github.com/siddontang/xcodis/issues/5#issuecomment-82981749","issue_url":"https://api.github.com/repos/siddontang/xcodis/issues/5","id":82981749,"user":{"login":"kouhate","id":5444080,"avatar_url":"https://avatars.githubusercontent.com/u/5444080?v=3","gravatar_id":"","url":"https://api.github.com/users/kouhate","html_url":"https://github.com/kouhate","followers_url":"https://api.github.com/users/kouhate/followers","following_url":"https://api.github.com/users/kouhate/following{/other_user}","gists_url":"https://api.github.com/users/kouhate/gists{/gist_id}","starred_url":"https://api.github.com/users/kouhate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kouhate/subscriptions","organizations_url":"https://api.github.com/users/kouhate/orgs","repos_url":"https://api.github.com/users/kouhate/repos","events_url":"https://api.github.com/users/kouhate/events{/privacy}","received_events_url":"https://api.github.com/users/kouhate/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T13:51:09Z","updated_at":"2015-03-18T13:51:09Z","body":":+1: \r\n<code>TMPSELECT db</code> may be better.\r\n"}}