{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4938","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4938/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4938/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4938/events","html_url":"https://github.com/sequelize/sequelize/issues/4938","id":119252981,"number":4938,"title":"AWS Lambda connection always open","user":{"login":"alex88","id":436888,"avatar_url":"https://avatars.githubusercontent.com/u/436888?v=3","gravatar_id":"","url":"https://api.github.com/users/alex88","html_url":"https://github.com/alex88","followers_url":"https://api.github.com/users/alex88/followers","following_url":"https://api.github.com/users/alex88/following{/other_user}","gists_url":"https://api.github.com/users/alex88/gists{/gist_id}","starred_url":"https://api.github.com/users/alex88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex88/subscriptions","organizations_url":"https://api.github.com/users/alex88/orgs","repos_url":"https://api.github.com/users/alex88/repos","events_url":"https://api.github.com/users/alex88/events{/privacy}","received_events_url":"https://api.github.com/users/alex88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2015-11-27T22:08:46Z","updated_at":"2016-09-06T11:17:18Z","closed_at":"2015-11-27T22:55:41Z","body":"Hi there,\r\n\r\nI'm not sure it's an issue with sequelize but I connect to my database at the beginning of a function with:\r\n\r\n```\r\nvar sequelize = new Sequelize('postgres://username:pwd@rds-postgresql-host:5432/database');\r\n```\r\n\r\nevery time I run the function I see on the database side that there are 4 open connections that doesn't get closed at the end of the function, is it possible to close the connections manually?"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/244920726","html_url":"https://github.com/sequelize/sequelize/issues/4938#issuecomment-244920726","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4938","id":244920726,"user":{"login":"phikes","id":3684890,"avatar_url":"https://avatars.githubusercontent.com/u/3684890?v=3","gravatar_id":"","url":"https://api.github.com/users/phikes","html_url":"https://github.com/phikes","followers_url":"https://api.github.com/users/phikes/followers","following_url":"https://api.github.com/users/phikes/following{/other_user}","gists_url":"https://api.github.com/users/phikes/gists{/gist_id}","starred_url":"https://api.github.com/users/phikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phikes/subscriptions","organizations_url":"https://api.github.com/users/phikes/orgs","repos_url":"https://api.github.com/users/phikes/repos","events_url":"https://api.github.com/users/phikes/events{/privacy}","received_events_url":"https://api.github.com/users/phikes/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T11:17:18Z","updated_at":"2016-09-06T11:17:18Z","body":"I am doing the same things as you, except for the settings of the connection pool I just use the defaults. I am using Postgres and I don't see any open connections even immediately after the execution.\r\n\r\nFor your last question: I *think* it depends. When AWS **reuses the Node process** (which I have only heard of) then it would use the **same connection pool** (in my case it seems to do that; hence the low latency I reported). If it didn't reuse the process it would be n differen connection pools with m different connections."}}
{"actor":{"display_login":"phikes"}}