{"action":"created","issue":{"url":"https://api.github.com/repos/bion/superdelegation/issues/55","repository_url":"https://api.github.com/repos/bion/superdelegation","labels_url":"https://api.github.com/repos/bion/superdelegation/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/bion/superdelegation/issues/55/comments","events_url":"https://api.github.com/repos/bion/superdelegation/issues/55/events","html_url":"https://github.com/bion/superdelegation/pull/55","id":147500565,"number":55,"title":"Disable prepared_statements in dev/test","user":{"login":"dbalatero","id":59429,"avatar_url":"https://avatars.githubusercontent.com/u/59429?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalatero","html_url":"https://github.com/dbalatero","followers_url":"https://api.github.com/users/dbalatero/followers","following_url":"https://api.github.com/users/dbalatero/following{/other_user}","gists_url":"https://api.github.com/users/dbalatero/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalatero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalatero/subscriptions","organizations_url":"https://api.github.com/users/dbalatero/orgs","repos_url":"https://api.github.com/users/dbalatero/repos","events_url":"https://api.github.com/users/dbalatero/events{/privacy}","received_events_url":"https://api.github.com/users/dbalatero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bion/superdelegation/labels/reviewable","name":"reviewable","color":"1d76db"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T17:38:28Z","updated_at":"2016-04-11T18:27:48Z","closed_at":"2016-04-11T18:19:14Z","pull_request":{"url":"https://api.github.com/repos/bion/superdelegation/pulls/55","html_url":"https://github.com/bion/superdelegation/pull/55","diff_url":"https://github.com/bion/superdelegation/pull/55.diff","patch_url":"https://github.com/bion/superdelegation/pull/55.patch"},"body":"Postgres + Puma is throwing a bunch of duplicate prepared statement errors on development. This is due to race conditions between the multiple server processes combined with a moronic prepared statements implementation that uses incrementing numbers to name their prepared statements (`a001`, `a002`). How could that ever collide?\r\n\r\n@bion This also needs to be configured on Heroku, by adding `?prepared_statements=false` to the end of the `DATABASE_URL`"},"comment":{"url":"https://api.github.com/repos/bion/superdelegation/issues/comments/208487651","html_url":"https://github.com/bion/superdelegation/pull/55#issuecomment-208487651","issue_url":"https://api.github.com/repos/bion/superdelegation/issues/55","id":208487651,"user":{"login":"dbalatero","id":59429,"avatar_url":"https://avatars.githubusercontent.com/u/59429?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalatero","html_url":"https://github.com/dbalatero","followers_url":"https://api.github.com/users/dbalatero/followers","following_url":"https://api.github.com/users/dbalatero/following{/other_user}","gists_url":"https://api.github.com/users/dbalatero/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalatero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalatero/subscriptions","organizations_url":"https://api.github.com/users/dbalatero/orgs","repos_url":"https://api.github.com/users/dbalatero/repos","events_url":"https://api.github.com/users/dbalatero/events{/privacy}","received_events_url":"https://api.github.com/users/dbalatero/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T18:27:48Z","updated_at":"2016-04-11T18:27:48Z","body":"@bion turns out that this is the way to do it in Rails 4.1+ on heroku:\r\n\r\nfc6bce351a7886b3498b5fbc7075c3cf4e8df8bb"}}