Skip to content

WorkManager

David edited this page Apr 1, 2020 · 3 revisions

It is through WorkManager that we are able to schedule tasks, to keep the data stored in the device's local database up to date on a daily basis. This raised some implementation concerns, namely whether we should always insert what comes in the response from the Github API into the database or just insert data that was not there yet. For example, in the case of updating the teams stored in the local DB. This data doesn't change much over time, due to its nature, so it is unnecessary to be re-writing data that hasn't changed in the DB.