then your cursor will only have the changed items ...
# rx
t
then your cursor will only have the changed items and you then create the new list by replacing edited and adding new