otherwise each insert/update triggers a re-fetch of the while list,
which is devastating for the UI and the battery
return 0;
return result.generation;
}
return 0;
return result.generation;
}
+ @androidx.room.Transaction
public void storeTransactionsSync(List<TransactionWithAccounts> list, long profileId) {
long generation = getGenerationSync(profileId) + 1;
public void storeTransactionsSync(List<TransactionWithAccounts> list, long profileId) {
long generation = getGenerationSync(profileId) + 1;
Logger.debug("Transaction",
String.format(Locale.ROOT, "Purged %d transaction accounts", removed));
}
Logger.debug("Transaction",
String.format(Locale.ROOT, "Purged %d transaction accounts", removed));
}
- private void storeSync(TransactionWithAccounts rec) {
+ @androidx.room.Transaction
+ void storeSync(TransactionWithAccounts rec) {
TransactionAccountDAO trAccDao = DB.get()
.getTransactionAccountDAO();
TransactionAccountDAO trAccDao = DB.get()
.getTransactionAccountDAO();