Database row version history?
It seems Convex internally keeps some version history of DB rows. Is it possible to view the previous version / snapshot of a given row, at a point in time?
I would like to do a diff between versions to see what data has changed. Thanks
2 Replies
we don't expose this yet, but we have some vague plans in the future to provide a high-performance CDC (change data capture) API using our transaction log (https://stack.convex.dev/how-convex-works#the-transaction-log)
How Convex Works
The full, unabridged story on how the Convex internals work.
That would be really useful for debugging. Given that Convex can now replace a lot of the client side state management, it would open up the possibility of a Redux-like time travel experience (but server side), where I would be able to restore the exact state of the app at any point in time.
Correlating this with errors raised would allow the app to be restored to its state when the error occurred.