Does Nostr need an upsert mechanism? You the entire message but you only send the delta. The relay then fetches the matching event and applies the delta, if the signature matches then itās accepted.
Discussion
You sign*
Key-value storage is very simple and efficient, and you can overwrite old versions of data.
If you're ok with saving the history of an object or specifically want to do it, you could use https://automerge.org on top of nostr
Iām excited about CDRTās for collaborative document creation.