forked from rocicorp/replicache-yjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chunks the server update state into 10_000 character chunks. This works around the 128 KB value size limit for Cloudflare durable storage. Prior to this change 128 KB was the maximum document size. Tested with 1, 5 and 10 MB documents. With this chunking, many edits (adding new lines, editing in the middle of the document, etc), result in all chunks being poked from the server to the clients. So large documents are inefficient but functioning. We should try to replace this basic chunking approach with a [content-defined chunking approach](https://joshleeb.com/posts/content-defined-chunking.html).
- Loading branch information
Showing
3 changed files
with
93 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters