split update_diff writes and deletes in two batches