{"action":"closed","issue":{"url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/issues/10","labels_url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/issues/10/comments","events_url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/issues/10/events","html_url":"https://github.com/dhis2/dhis2-android-sdk/issues/10","id":66826467,"number":10,"title":"Save to database using async = true everywhere if possible","user":{"login":"simernes","id":1278451,"avatar_url":"https://avatars.githubusercontent.com/u/1278451?v=3","gravatar_id":"","url":"https://api.github.com/users/simernes","html_url":"https://github.com/simernes","followers_url":"https://api.github.com/users/simernes/followers","following_url":"https://api.github.com/users/simernes/following{/other_user}","gists_url":"https://api.github.com/users/simernes/gists{/gist_id}","starred_url":"https://api.github.com/users/simernes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simernes/subscriptions","organizations_url":"https://api.github.com/users/simernes/orgs","repos_url":"https://api.github.com/users/simernes/repos","events_url":"https://api.github.com/users/simernes/events{/privacy}","received_events_url":"https://api.github.com/users/simernes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"simernes","id":1278451,"avatar_url":"https://avatars.githubusercontent.com/u/1278451?v=3","gravatar_id":"","url":"https://api.github.com/users/simernes","html_url":"https://github.com/simernes","followers_url":"https://api.github.com/users/simernes/followers","following_url":"https://api.github.com/users/simernes/following{/other_user}","gists_url":"https://api.github.com/users/simernes/gists{/gist_id}","starred_url":"https://api.github.com/users/simernes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simernes/subscriptions","organizations_url":"https://api.github.com/users/simernes/orgs","repos_url":"https://api.github.com/users/simernes/repos","events_url":"https://api.github.com/users/simernes/events{/privacy}","received_events_url":"https://api.github.com/users/simernes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/milestones/1","html_url":"https://github.com/dhis2/dhis2-android-sdk/milestones/1.0","labels_url":"https://api.github.com/repos/dhis2/dhis2-android-sdk/milestones/1/labels","id":1070520,"number":1,"title":"1.0","description":"Initial stable release. Shall support creating Tracker and Event capture apps.","creator":{"login":"simernes","id":1278451,"avatar_url":"https://avatars.githubusercontent.com/u/1278451?v=3","gravatar_id":"","url":"https://api.github.com/users/simernes","html_url":"https://github.com/simernes","followers_url":"https://api.github.com/users/simernes/followers","following_url":"https://api.github.com/users/simernes/following{/other_user}","gists_url":"https://api.github.com/users/simernes/gists{/gist_id}","starred_url":"https://api.github.com/users/simernes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simernes/subscriptions","organizations_url":"https://api.github.com/users/simernes/orgs","repos_url":"https://api.github.com/users/simernes/repos","events_url":"https://api.github.com/users/simernes/events{/privacy}","received_events_url":"https://api.github.com/users/simernes/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":5,"state":"open","created_at":"2015-04-16T11:40:54Z","updated_at":"2015-04-22T08:20:33Z","due_on":"2015-05-31T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-04-07T08:44:01Z","updated_at":"2015-04-22T08:20:33Z","closed_at":"2015-04-22T08:20:33Z","body":"In DbFlow there is an option to save async true|false. When true, saving is added to a transaction queue and is executed in bulk. This is better for flow and is safer when multiple threads are saving simultaneously. Setting the flag to false may cause crashes due to db locks if two \"synchronous\" save calls happen at the same time from different threads.\r\n\r\nIf possible make sure async is always true. "}}