{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3924","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3924/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3924/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3924/events","html_url":"https://github.com/sequelize/sequelize/issues/3924","id":87854651,"number":3924,"title":"Sequelize seems to be mixing data during concurrent requests","user":{"login":"chuks","id":891251,"avatar_url":"https://avatars.githubusercontent.com/u/891251?v=3","gravatar_id":"","url":"https://api.github.com/users/chuks","html_url":"https://github.com/chuks","followers_url":"https://api.github.com/users/chuks/followers","following_url":"https://api.github.com/users/chuks/following{/other_user}","gists_url":"https://api.github.com/users/chuks/gists{/gist_id}","starred_url":"https://api.github.com/users/chuks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuks/subscriptions","organizations_url":"https://api.github.com/users/chuks/orgs","repos_url":"https://api.github.com/users/chuks/repos","events_url":"https://api.github.com/users/chuks/events{/privacy}","received_events_url":"https://api.github.com/users/chuks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-12T21:15:05Z","updated_at":"2015-06-13T11:07:42Z","closed_at":null,"body":"Hi,\r\nI'll try to be as clear as possible. I am using the latest Sequelize, and getting some weird issues. I have built an API using Sequelize (with postgresql backend), and Express4.0, but am running into issues when concurrent calls are made the the API. For instance, when multiple simultaneous calls are made to a getUser enpoint (giving several user ids), the return/callback gets all mixed up (e.g. call to user 1 gets user 3 data, etc). I am using this bootstrap project as my example https://github.com/sequelize/express-example. Is this clear enough, or is some code needed? My reference is this https://github.com/sequelize/express-example\r\n\r\nNo sure if this seem to be related to database connection. I am using a connection pool like this: \r\n\r\nvar dbConnectionPoolOption = {\r\n  maxConnections: 20,\r\n  minConnections: 0,\r\n  maxIdleTime:    1000\r\n}; \r\n\r\nBut some calls are timing out when I set the timeout to 20seconds. Timeout improves when I set to 30 seconds. However, if I run the calls concurrently during testing, I get some timeouts ( I do a RETRY on timeouts) + data mix up as described above.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/111698527","html_url":"https://github.com/sequelize/sequelize/issues/3924#issuecomment-111698527","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3924","id":111698527,"user":{"login":"janmeier","id":1210224,"avatar_url":"https://avatars.githubusercontent.com/u/1210224?v=3","gravatar_id":"","url":"https://api.github.com/users/janmeier","html_url":"https://github.com/janmeier","followers_url":"https://api.github.com/users/janmeier/followers","following_url":"https://api.github.com/users/janmeier/following{/other_user}","gists_url":"https://api.github.com/users/janmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/janmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janmeier/subscriptions","organizations_url":"https://api.github.com/users/janmeier/orgs","repos_url":"https://api.github.com/users/janmeier/repos","events_url":"https://api.github.com/users/janmeier/events{/privacy}","received_events_url":"https://api.github.com/users/janmeier/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T11:07:42Z","updated_at":"2015-06-13T11:07:42Z","body":"Please reformat it with [github flavored markdown](https://help.github.com/articles/github-flavored-markdown/) or post it as a gist, and I'll have a look. But I'm pretty sure this error is related to promises / async, not to sequelize"}}