Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forking a document #372

Open
davidbrochart opened this issue Dec 28, 2023 · 0 comments
Open

Forking a document #372

davidbrochart opened this issue Dec 28, 2023 · 0 comments

Comments

@davidbrochart
Copy link
Contributor

In pycrdt I'm experimenting with schema to validate incoming changes, by first applying the changes to a "twin" document of the "real" document, and if the "twin" document is still valid then the changes are applied to the "real" document.
This is expensive because data and operations are duplicated. I'm wondering if it would be possible to "fork" a document, but without data duplication. The forked document would be in a state where one could apply changes but no event change would be emitted. Then one could either discard the forked document (and the document would remain in the state before forking), or accept the forked document (and the changes would be emitted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant