-
Notifications
You must be signed in to change notification settings - Fork 29
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
Page is stop for more than 1MB text edition. #194
Comments
Could I try this issue?! |
@kjw7953 https://codepair.yorkie.dev/9340gq Did you see the text crack in your client view while you were writing the document? |
@Eithea FYI, when I use the codepair for the first time (7.14), the conflict occurred almost immediately. |
@kjw7953 Considering your answer, the client's local replica editing works normally because of recent bug-fixes. But there seems to be something wrong yet with the process of applying it in the docs of server DB. |
We can consider the following approach: Approach 1. Splitting the big contents in CodePairFor example: const bigContent = '...';
const contents = bigContent.splitXXX();
const offset = 0;
for (const content of contents) {
document.update((root) => {
root.text.edit(offset, offset, content);
offset += content.length;
});
}
If only a part of the change succeeds in sending and the rest fails, there may be a problem that only part of the pasted content remains in the document. |
What happened:
I tried to copy and paste 2^20bytes text but the request failed and tried infinitely.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
edit over 2^20bytes at once.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: