The database is always updating itself, even if absolutely no changes were made, eg, the json is fetched from the shared prefs.
The database update should only be done, when new web data is fetched, this could either be done by having an internal check btw. last update field in the database too (that could be compared to the lastupdate saved in the shared prefs) or we find another way to place the updateDB() call...eg. when web data is refetched...
The database is always updating itself, even if absolutely no changes were made, eg, the json is fetched from the shared prefs.
The database update should only be done, when new web data is fetched, this could either be done by having an internal check btw. last update field in the database too (that could be compared to the lastupdate saved in the shared prefs) or we find another way to place the updateDB() call...eg. when web data is refetched...