3 ms·
Neon is basically a copy on write postgres backend. So you can create a branch at near zero cost and start making changes, but there's no way to merge those cha
by zachmu 3y ago
Neon is basically a copy on write postgres backend. So you can create a branch at near zero cost and start making changes, but there's no way to merge those changes back to the original branch.
To do that, you need a storage system that can efficiently compute a diff to do a three-way merge. That's what dolt does. It means you can diff any two commits in the database with cost proportional to the size of the diff, not the size of the data. And it uses a commit graph just like git which enables it to find common ancestors for a three-way merge algorithm, again just like git.