{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/766","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/766/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/766/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/766","id":171590216,"number":766,"title":"High process count causes mysql to deadlock often","user":{"login":"Dagothur","id":3249111,"avatar_url":"https://avatars.githubusercontent.com/u/3249111?v=3","gravatar_id":"","url":"https://api.github.com/users/Dagothur","html_url":"https://github.com/Dagothur","followers_url":"https://api.github.com/users/Dagothur/followers","following_url":"https://api.github.com/users/Dagothur/following{/other_user}","gists_url":"https://api.github.com/users/Dagothur/gists{/gist_id}","starred_url":"https://api.github.com/users/Dagothur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dagothur/subscriptions","organizations_url":"https://api.github.com/users/Dagothur/orgs","repos_url":"https://api.github.com/users/Dagothur/repos","events_url":"https://api.github.com/users/Dagothur/events{/privacy}","received_events_url":"https://api.github.com/users/Dagothur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-17T07:15:50Z","updated_at":"2016-08-18T01:42:28Z","closed_at":null,"body":"When using a high number of processes mysql will deadlock frequently:\r\n\r\nhttp://pastebin.com/adrFACgs\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/240600644","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/766#issuecomment-240600644","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/766","id":240600644,"user":{"login":"Xcelled","id":5599341,"avatar_url":"https://avatars.githubusercontent.com/u/5599341?v=3","gravatar_id":"","url":"https://api.github.com/users/Xcelled","html_url":"https://github.com/Xcelled","followers_url":"https://api.github.com/users/Xcelled/followers","following_url":"https://api.github.com/users/Xcelled/following{/other_user}","gists_url":"https://api.github.com/users/Xcelled/gists{/gist_id}","starred_url":"https://api.github.com/users/Xcelled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xcelled/subscriptions","organizations_url":"https://api.github.com/users/Xcelled/orgs","repos_url":"https://api.github.com/users/Xcelled/repos","events_url":"https://api.github.com/users/Xcelled/events{/privacy}","received_events_url":"https://api.github.com/users/Xcelled/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T01:42:27Z","updated_at":"2016-08-18T01:42:27Z","body":"@BaIthamel what about implementing our own context manager for DBs, so instead of doing DB connections manually, you do a simple `with get_db() as db:` and that takes care of everything for you. Or, we could use contextlib to avoid having to wrap the db classes: http://stackoverflow.com/a/3774934/1163742"}}
{"actor":{"display_login":"Xcelled"}}