{"action":"created","issue":{"url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/68","repository_url":"https://api.github.com/repos/OpenConceptLab/ocl_issues","labels_url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/68/comments","events_url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/68/events","html_url":"https://github.com/OpenConceptLab/ocl_issues/issues/68","id":361347330,"node_id":"MDU6SXNzdWUzNjEzNDczMzA=","number":68,"title":"Speed up creation or update of a concept or mapping in a source","user":{"login":"paynejd","id":1189689,"node_id":"MDQ6VXNlcjExODk2ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1189689?v=4","gravatar_id":"","url":"https://api.github.com/users/paynejd","html_url":"https://github.com/paynejd","followers_url":"https://api.github.com/users/paynejd/followers","following_url":"https://api.github.com/users/paynejd/following{/other_user}","gists_url":"https://api.github.com/users/paynejd/gists{/gist_id}","starred_url":"https://api.github.com/users/paynejd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paynejd/subscriptions","organizations_url":"https://api.github.com/users/paynejd/orgs","repos_url":"https://api.github.com/users/paynejd/repos","events_url":"https://api.github.com/users/paynejd/events{/privacy}","received_events_url":"https://api.github.com/users/paynejd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rkorytkowski","id":1163157,"node_id":"MDQ6VXNlcjExNjMxNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1163157?v=4","gravatar_id":"","url":"https://api.github.com/users/rkorytkowski","html_url":"https://github.com/rkorytkowski","followers_url":"https://api.github.com/users/rkorytkowski/followers","following_url":"https://api.github.com/users/rkorytkowski/following{/other_user}","gists_url":"https://api.github.com/users/rkorytkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rkorytkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkorytkowski/subscriptions","organizations_url":"https://api.github.com/users/rkorytkowski/orgs","repos_url":"https://api.github.com/users/rkorytkowski/repos","events_url":"https://api.github.com/users/rkorytkowski/events{/privacy}","received_events_url":"https://api.github.com/users/rkorytkowski/received_events","type":"User","site_admin":false},"assignees":[{"login":"rkorytkowski","id":1163157,"node_id":"MDQ6VXNlcjExNjMxNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1163157?v=4","gravatar_id":"","url":"https://api.github.com/users/rkorytkowski","html_url":"https://github.com/rkorytkowski","followers_url":"https://api.github.com/users/rkorytkowski/followers","following_url":"https://api.github.com/users/rkorytkowski/following{/other_user}","gists_url":"https://api.github.com/users/rkorytkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rkorytkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkorytkowski/subscriptions","organizations_url":"https://api.github.com/users/rkorytkowski/orgs","repos_url":"https://api.github.com/users/rkorytkowski/repos","events_url":"https://api.github.com/users/rkorytkowski/events{/privacy}","received_events_url":"https://api.github.com/users/rkorytkowski/received_events","type":"User","site_admin":false},{"login":"wluyima","id":1395907,"node_id":"MDQ6VXNlcjEzOTU5MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1395907?v=4","gravatar_id":"","url":"https://api.github.com/users/wluyima","html_url":"https://github.com/wluyima","followers_url":"https://api.github.com/users/wluyima/followers","following_url":"https://api.github.com/users/wluyima/following{/other_user}","gists_url":"https://api.github.com/users/wluyima/gists{/gist_id}","starred_url":"https://api.github.com/users/wluyima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wluyima/subscriptions","organizations_url":"https://api.github.com/users/wluyima/orgs","repos_url":"https://api.github.com/users/wluyima/repos","events_url":"https://api.github.com/users/wluyima/events{/privacy}","received_events_url":"https://api.github.com/users/wluyima/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-18T14:57:38Z","updated_at":"2018-10-12T05:47:51Z","closed_at":null,"author_association":"MEMBER","body":"Currently this takes 10-20 seconds per resource, and it should be able to be much faster."},"comment":{"url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/comments/429211323","html_url":"https://github.com/OpenConceptLab/ocl_issues/issues/68#issuecomment-429211323","issue_url":"https://api.github.com/repos/OpenConceptLab/ocl_issues/issues/68","id":429211323,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTIxMTMyMw==","user":{"login":"rkorytkowski","id":1163157,"node_id":"MDQ6VXNlcjExNjMxNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1163157?v=4","gravatar_id":"","url":"https://api.github.com/users/rkorytkowski","html_url":"https://github.com/rkorytkowski","followers_url":"https://api.github.com/users/rkorytkowski/followers","following_url":"https://api.github.com/users/rkorytkowski/following{/other_user}","gists_url":"https://api.github.com/users/rkorytkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rkorytkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkorytkowski/subscriptions","organizations_url":"https://api.github.com/users/rkorytkowski/orgs","repos_url":"https://api.github.com/users/rkorytkowski/repos","events_url":"https://api.github.com/users/rkorytkowski/events{/privacy}","received_events_url":"https://api.github.com/users/rkorytkowski/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T05:47:51Z","updated_at":"2018-10-12T05:47:51Z","author_association":"CONTRIBUTOR","body":"Fixed! It takes less than a second on my machine now for a newly created source (may very on depending on the source size)...\r\n\r\nThe issue was that we were counting all concepts in a source with every creation of a concept. The count operation is very slow on Mongo. Rather than counting each time we are now simply incrementing the count atomically, which is much faster."}}
{"actor":{"display_login":"rkorytkowski"}}