{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/2809","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/2809/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/2809/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/2809/events","html_url":"https://github.com/Automattic/mongoose/issues/2809","id":65065834,"number":2809,"title":"performance issue of 4.0.0&4.0.1","user":{"login":"losogithub","id":1956086,"avatar_url":"https://avatars.githubusercontent.com/u/1956086?v=3","gravatar_id":"","url":"https://api.github.com/users/losogithub","html_url":"https://github.com/losogithub","followers_url":"https://api.github.com/users/losogithub/followers","following_url":"https://api.github.com/users/losogithub/following{/other_user}","gists_url":"https://api.github.com/users/losogithub/gists{/gist_id}","starred_url":"https://api.github.com/users/losogithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losogithub/subscriptions","organizations_url":"https://api.github.com/users/losogithub/orgs","repos_url":"https://api.github.com/users/losogithub/repos","events_url":"https://api.github.com/users/losogithub/events{/privacy}","received_events_url":"https://api.github.com/users/losogithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Automattic/mongoose/milestones/36","html_url":"https://github.com/Automattic/mongoose/milestones/4.0.2","labels_url":"https://api.github.com/repos/Automattic/mongoose/milestones/36/labels","id":1043141,"number":36,"title":"4.0.2","description":"","creator":{"login":"vkarpov15","id":1620265,"avatar_url":"https://avatars.githubusercontent.com/u/1620265?v=3","gravatar_id":"","url":"https://api.github.com/users/vkarpov15","html_url":"https://github.com/vkarpov15","followers_url":"https://api.github.com/users/vkarpov15/followers","following_url":"https://api.github.com/users/vkarpov15/following{/other_user}","gists_url":"https://api.github.com/users/vkarpov15/gists{/gist_id}","starred_url":"https://api.github.com/users/vkarpov15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkarpov15/subscriptions","organizations_url":"https://api.github.com/users/vkarpov15/orgs","repos_url":"https://api.github.com/users/vkarpov15/repos","events_url":"https://api.github.com/users/vkarpov15/events{/privacy}","received_events_url":"https://api.github.com/users/vkarpov15/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":18,"state":"open","created_at":"2015-03-28T20:52:22Z","updated_at":"2015-04-16T15:31:08Z","due_on":"2015-04-24T04:00:00Z","closed_at":null},"comments":24,"created_at":"2015-03-29T14:22:31Z","updated_at":"2015-04-17T10:39:33Z","closed_at":null,"body":"After upgrading from 3.9.* to 4.0.0&4.0.1, my node process's CPU usage increased by more than 200%.\r\nEach http request which uses mongoose costs cpu % 3 times than before.\r\nAnd when I downgrade back to 3.8.25, everything is OK."},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/93962250","html_url":"https://github.com/Automattic/mongoose/issues/2809#issuecomment-93962250","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/2809","id":93962250,"user":{"login":"lbeschastny","id":1128370,"avatar_url":"https://avatars.githubusercontent.com/u/1128370?v=3","gravatar_id":"","url":"https://api.github.com/users/lbeschastny","html_url":"https://github.com/lbeschastny","followers_url":"https://api.github.com/users/lbeschastny/followers","following_url":"https://api.github.com/users/lbeschastny/following{/other_user}","gists_url":"https://api.github.com/users/lbeschastny/gists{/gist_id}","starred_url":"https://api.github.com/users/lbeschastny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbeschastny/subscriptions","organizations_url":"https://api.github.com/users/lbeschastny/orgs","repos_url":"https://api.github.com/users/lbeschastny/repos","events_url":"https://api.github.com/users/lbeschastny/events{/privacy}","received_events_url":"https://api.github.com/users/lbeschastny/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T10:39:33Z","updated_at":"2015-04-17T10:39:33Z","body":"@AHDPuK I played a bit with your data and boiled it down to the `userData` field. The rest of your schema have no impact on mongoose performance."}}