rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.01k stars 37 forks source link

Consider adding WriteTransaction.merge() convenience #1036

Open aboodman opened 1 year ago

aboodman commented 1 year ago

See the related Firebase feature for inspiration: https://stackoverflow.com/questions/46597327/difference-between-firestore-set-with-merge-true-and-update

arv commented 1 year ago

Performance wise it would be slightly more efficient... One B+Tree lookup vs 2 but I'm sure it is not noticeable compared to everything else going on.