Room : LiveData from Dao will trigger Observer.onChanged on every Update, even if the LiveData value has no change
问题 I found that the LiveData returned by Dao will call its observer whenever the row is updated in DB, even if the LiveData value is obviously not changed. Consider a situation like the following example : Example entity @Entity public class User { public long id; public String name; // example for other variables public Date lastActiveDateTime; } Example Dao @Dao public interface UserDao { // I am only interested in the user name @Query("SELECT name From User") LiveData<List<String>>