compare items for equality in the resource before updating with data from the server or storage