{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13703","labels_url":"https://api.github.com/repos/owncloud/core/issues/13703/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13703/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13703/events","html_url":"https://github.com/owncloud/core/issues/13703","id":55594911,"number":13703,"title":"Prevent file scanner concurrency","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T09:35:18Z","updated_at":"2015-01-29T16:08:55Z","closed_at":null,"body":"Sometimes it can happen that a scanner process is triggered twice at the same time through different requests, and they both scan the same file entries.\r\n\r\nThis can cause \"Duplicate entry\" issues and other unpredictable results.\r\n\r\nWe should look into a way to prevent two scanner instances to run into each other.\r\n\r\n@icewind1991 @DeepDiver1975 @MorrisJobke "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/72051256","html_url":"https://github.com/owncloud/core/issues/13703#issuecomment-72051256","issue_url":"https://api.github.com/repos/owncloud/core/issues/13703","id":72051256,"user":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T16:08:55Z","updated_at":"2015-01-29T16:08:55Z","body":"duplicate entries are to be solved by having proper unique keys\r\n\r\nerrors with accidentally duplicate insert is to be handled by using INSERT WHERE NOT EXISTS "}}