{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/1020","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1020/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1020/events","html_url":"https://github.com/elixir-lang/ecto/pull/1020","id":111629155,"number":1020,"title":"WIP: Add ownership","user":{"login":"ericmj","id":316890,"avatar_url":"https://avatars.githubusercontent.com/u/316890?v=3","gravatar_id":"","url":"https://api.github.com/users/ericmj","html_url":"https://github.com/ericmj","followers_url":"https://api.github.com/users/ericmj/followers","following_url":"https://api.github.com/users/ericmj/following{/other_user}","gists_url":"https://api.github.com/users/ericmj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmj/subscriptions","organizations_url":"https://api.github.com/users/ericmj/orgs","repos_url":"https://api.github.com/users/ericmj/repos","events_url":"https://api.github.com/users/ericmj/events{/privacy}","received_events_url":"https://api.github.com/users/ericmj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-15T14:29:42Z","updated_at":"2015-10-18T15:54:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/ecto/pulls/1020","html_url":"https://github.com/elixir-lang/ecto/pull/1020","diff_url":"https://github.com/elixir-lang/ecto/pull/1020.diff","patch_url":"https://github.com/elixir-lang/ecto/pull/1020.patch"},"body":"Add ownership pool that wraps an inner pool for. When using the ownership pool a process needs to call `ownership_checkout` to be able to use a worker, all subsequent pool checkouts from the process will use the same worker until the process dies or it calls `ownership_checkin`.\r\n\r\nThis functionality allows to run tests with sandboxed connections in parallel."},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/149026479","html_url":"https://github.com/elixir-lang/ecto/pull/1020#issuecomment-149026479","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1020","id":149026479,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T15:54:43Z","updated_at":"2015-10-18T15:54:43Z","body":"We will start with tests but design wise it is meant to solve your use case\ntoo. A bug in this code can be very harmful, so it doesn't hurt to hammer\nit out in test env a bit.\n\nOn Sunday, October 18, 2015, Martin Schürrer <notifications@github.com>\nwrote:\n\n> Is this just meant to be used in tests or also something to be used in\n> production? Asking because it looks like a perfect solution to my old #569\n> <https://github.com/elixir-lang/ecto/issues/569> as well.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/elixir-lang/ecto/pull/1020#issuecomment-149026138>.\n>\n\n\n-- \n\n\n*José Valimwww.plataformatec.com.br\n<http://www.plataformatec.com.br/>Founder and Director of R&D*\n"}}